Initial commit
This commit is contained in:
24
test.rb
Normal file
24
test.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
module Mo
|
||||
MAPPING = { a: 'a', b: 'b' }
|
||||
@mapping = 'ayza2'
|
||||
class << self
|
||||
@mapping_singleton = 'ayza'
|
||||
def test
|
||||
a = :a
|
||||
p MAPPING.dig(a)
|
||||
p @mapping
|
||||
end
|
||||
end
|
||||
|
||||
def test2
|
||||
p MAPPING
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Mo.test
|
||||
|
||||
# Mo::test2
|
||||
|
||||
p Mo.singleton_class.instance_variables
|
||||
p Mo.instance_variables
|
||||
Reference in New Issue
Block a user