Skip to content

Instantly share code, notes, and snippets.

@sarahzrf
Created June 17, 2016 22:47
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