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


This is an example of scrolling text using Javascript.

Popular Posts