(#<MainActivity:0x6366>)> module B
(#<MainActivity:0x6366>)> def d
(#<MainActivity:0x6366>)> true
(#<MainActivity:0x6366>)> end
(#<MainActivity:0x6366>)> end
=> :d
(#<MainActivity:0x6366>)>
(#<MainActivity:0x6366>)> class A
(#<MainActivity:0x6366>)> class << self
(#<MainActivity:0x6366>)> include B
(#<MainActivity:0x6366>)>
(#<MainActivity:0x6366>)> def c
(#<MainActivity:0x6366>)> true
(#<MainActivity:0x6366>)> end
(#<MainActivity:0x6366>)> end
(#<MainActivity:0x6366>)> end
=> :c
(#<MainActivity:0x6366>)> A.d
=> true
(#<MainActivity:0x6366>)> A.c
=> true
Create a new app. Add the following code to main_activity.rb or another file.
Trying to reference any symbol in the module fails:
Copy/Pasting the same code in to the repl works