-
-
Save anonymous/8827267302ae6498cff3bf6ded9f37c6 to your computer and use it in GitHub Desktop.
attr_accessor failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Outer | |
module Inner | |
attr_reader :special | |
def self.do_something | |
@special = 'my value' | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'inner_module' | |
module Outer | |
Inner.do_something | |
p Inner.special | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment