Skip to content

Instantly share code, notes, and snippets.

@austinthecoder
Created March 18, 2010 22:09
Show Gist options
  • Save austinthecoder/336969 to your computer and use it in GitHub Desktop.
Save austinthecoder/336969 to your computer and use it in GitHub Desktop.
class Y
def name
'bar'
end
end
class X
def y
y = Y.new
def y.foo
end
y
end
end
x = X.new
puts x.y.foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment