####These are the steps to installing and setting up Steven Spiel
Steven Spiel is compatible with:
| |
|
|
|
|
|
| --- | --- | --- | --- | --- | --- | --- |
| Ruby | Rails | TDD | JS | CSS3 | HTML5 |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Animal(name, legs){ | |
this.name = name; | |
this.legs = legs; | |
} | |
Animal.prototype.identify = function(){ | |
"I am a " + this.name + " with " + this.legs + " legs"; |
$(document).ready(function () { | |
$('#submit').click(function(){ | |
$.post("/rolls", function(res){ | |
$('#die').html("<img src='" + res.img + "' alt='dice'></img> "); | |
}); | |
}); | |
}); |
class Vehicle | |
def initialize(args) | |
@color = args[:color] | |
@wheels = 4 | |
end | |
def drive | |
@status = :driving | |
end | |