Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Tuesday, January 22, 2013
Codecademy Sample Solution: Mixin For the Win
module Languages
FAVE = "Ruby" # This is what you typed before, right? :D
end
class Master
include Languages
def initialize; end
def victory
puts FAVE
end
end
total = Master.new
total.victory
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This is an example of
scrolling text
using Javascript.
Popular Posts
No comments:
Post a Comment