Skip to content

Instantly share code, notes, and snippets.

@fdutey fdutey/gist:71350
Created Feb 27, 2009

Embed
What would you like to do?
a = { :a => '1', :b => '2' }
b = a.dup
with a do
def test_method
keys
end
end
a.test_method #=> [:b, :a]
b.test_method #=> raise NoMethodError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.