Skip to content

Instantly share code, notes, and snippets.

@sarahzrf
Created June 17, 2016 22:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sarahzrf/9adb925c41e3ff20be0562df1cd87d64 to your computer and use it in GitHub Desktop.
module Consts
Val = 3
end
module Mod
class Foo
include Consts
module Bar
def baz
p Module.nesting
p ::Mod::Foo::Val
p Val
end
end
end
end
class Mod::Foo
include Bar
end
puts Mod::Foo.new.baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment