Skip to content

Instantly share code, notes, and snippets.

@STAR-ZERO
Created January 25, 2012 04:39
Show Gist options
  • Save STAR-ZERO/1674760 to your computer and use it in GitHub Desktop.
Save STAR-ZERO/1674760 to your computer and use it in GitHub Desktop.
Ruby first
class Cat
def initialize
@word = 'にゃんにゃん'
end
def nyan
print @word
print "\n"
end
end
cat = Cat.new
cat.nyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment