Skip to content

Instantly share code, notes, and snippets.

@DanielVartanov
Created July 2, 2010 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielVartanov/461094 to your computer and use it in GitHub Desktop.
Save DanielVartanov/461094 to your computer and use it in GitHub Desktop.
class Configuration
@@value = 1
def self.value
@@value
end
end
class Configuration
@@value = 2
def self.value
@@value
end
end
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