Create a gist now

Instantly share code, notes, and snippets.

Non-obvious string interpolation tidbit.
class Foo
def to_s
1
end
# Just to make sure ;)
def inspect
'a foo'
end
end
p "This is a foo: #{Foo.new}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment