Created
July 2, 2010 08:15
-
-
Save DanielVartanov/461094 to your computer and use it in GitHub Desktop.
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
class Configuration | |
@@value = 1 | |
def self.value | |
@@value | |
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
class Configuration | |
@@value = 2 | |
def self.value | |
@@value | |
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
module One | |
require 'config1' | |
end | |
module Two | |
require 'config2' | |
end | |
def process(config) | |
puts config.value | |
end | |
process One::Configuration | |
process Two::Configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment