Revisions
-
seven1m revised this gist
Apr 16, 2013 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ class Foo class << self private def bar puts 'I did not broke your ruby' end end end Foo.bar # NoMethodError: private method `bar' called for Foo:Class -
Blaine Schmeisser created this gist
Apr 16, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ class Foo private def self.bar puts 'I broke your ruby' end end Foo.bar # I broke your ruby