Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Last active December 18, 2015 12:08
Show Gist options
  • Select an option

  • Save amatsuda/5780205 to your computer and use it in GitHub Desktop.

Select an option

Save amatsuda/5780205 to your computer and use it in GitHub Desktop.
S = 'foo'
class A
def a() S; end
end
class B < BasicObject
# needs to be ::S
def b() ::S; end
end
p A.new.a
p B.new.b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment