Skip to content

Instantly share code, notes, and snippets.

@dscataglini
Created April 21, 2009 15:11
Show Gist options
  • Save dscataglini/99182 to your computer and use it in GitHub Desktop.
Save dscataglini/99182 to your computer and use it in GitHub Desktop.
a = [1]
def bar x
x << 2
end
bar a
puts a
def foo(bar)
def bar.baz
1
end
end
class A;
end
object = A.new
puts object
foo(object)
puts object.baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment