-
-
Save kkosuge/1674993 to your computer and use it in GitHub Desktop.
Ruby first
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
class Cat | |
def initialize | |
@word = 'にゃんにゃん' | |
end | |
def nyan | |
puts @word | |
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