Skip to content

Instantly share code, notes, and snippets.

@kkosuge
Created July 8, 2011 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkosuge/1071982 to your computer and use it in GitHub Desktop.
Save kkosuge/1071982 to your computer and use it in GitHub Desktop.
false_nyan.rb
class Nyan
attr_accessor :piyo
def test
p piyo
if false
p "in!!!!!!!!!!!!!!"
piyo = "wan!!"
end
p piyo
end
end
a = Nyan.new
a.piyo = "nyan"
a.test
#=> "nyan"
#=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment