Skip to content

Instantly share code, notes, and snippets.

@mryoshio
Created June 24, 2013 15:32
Show Gist options
  • Select an option

  • Save mryoshio/5850914 to your computer and use it in GitHub Desktop.

Select an option

Save mryoshio/5850914 to your computer and use it in GitHub Desktop.
scope error sample2
a = 'found!'
ScopeTest = Class.new do
puts a
def my_method
puts a
end
end
s = ScopeTest.new
s.my_method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment