Skip to content

Instantly share code, notes, and snippets.

@asterite
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save asterite/7641b60695afb294cfce to your computer and use it in GitHub Desktop.

Select an option

Save asterite/7641b60695afb294cfce to your computer and use it in GitHub Desktop.
class Context
def initialize
@x = self
end
def x
@x
end
def it(&block)
block.call
end
end
context = Context.new
context.it do
{0, 0, 42, 0}
end
puts context.x.object_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment