Created
August 25, 2012 04:46
-
-
Save krainboltgreene/3460906 to your computer and use it in GitHub Desktop.
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
example = OpenStruct.new | |
example.marshal_load = "example;example;example" # => "example;example;example" | |
example.table # => nil | |
example # => #<OpenStruct marshal_load="example;example;example"> | |
example.marshal_load # => ArgumentError: wrong number of arguments (0 for 1) | |
example.marshal_load "red" # => NoMethodError: undefined method `each_key' for "red":String | |
example # => #<OpenStruct:0x3fd970c44120> | |
example.table # => TypeError: can't convert Symbol into Integer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment