Skip to content

Instantly share code, notes, and snippets.

@fukayatsu
Created January 1, 2012 12:27
Show Gist options
  • Save fukayatsu/1547210 to your computer and use it in GitHub Desktop.
Save fukayatsu/1547210 to your computer and use it in GitHub Desktop.
happy new year!
def A(o)
p "A "+o.s
end
class Happy
def initialize(s)
@s=s
end
def s
"Happy new "+@s
end
end
A Happy.new("year!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment