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 SomeThing | |
class SomethingElse;end | |
def self.inside | |
x = AllTogetherDifferent.new | |
# Works because all constants are Global | |
puts x.inspect | |
# x = SomeThing::AllTogetherDifferent.new | |
# Produces in `inside': uninitialized constant SomeThing::AllTogetherDifferent (NameError) | |
x = SomeThing::SomethingElse::AllTogetherDifferent.new | |
puts x.inspect |
NewerOlder