Skip to content

Instantly share code, notes, and snippets.

View martindorey's full-sized avatar

Martin Dorey martindorey

View GitHub Profile
@meineerde
meineerde / gist:1396097
Created November 26, 2011 18:28
inspect vs. to_s
# Example 1
# "Empty" instance
#################################################
class Foo; end
foo = Foo.new
# will be true in 1.8.7 and 1.9.2 as no instance variables are defined
foo.inspect == foo.to_s