Skip to content

Instantly share code, notes, and snippets.

@corntrace
Created November 15, 2009 07:43
Show Gist options
  • Save corntrace/235088 to your computer and use it in GitHub Desktop.
Save corntrace/235088 to your computer and use it in GitHub Desktop.
Ruby meta handle constants
eval(IO.read(configuration.environment_path), binding, configuration.environment_path)
(self.class.constants - constants).each do |const|
Object.const_set(const, self.class.const_get(const))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment