Module: NoBrainer::System
- Extended by:
- Autoload
- Defined in:
- lib/no_brainer/system.rb
Defined Under Namespace
Modules: Document Classes: ClusterConfig, DBConfig, Issue, Job, Log, ServerConfig, ServerStatus, Stat, TableConfig, TableStatus
Class Method Summary collapse
-
.const_missing(const_name) ⇒ Object
A few shortcuts to make user’s life easier.
Methods included from Autoload
autoload, autoload_and_include, eager_autoload, eager_load!, extended
Class Method Details
permalink .const_missing(const_name) ⇒ Object
A few shortcuts to make user’s life easier
8 9 10 11 12 13 14 15 16 |
# File 'lib/no_brainer/system.rb', line 8 def self.const_missing(const_name) mapping = {:CurrentIssues => :Issue, :CurrentIssue => :Issue, :Issues => :Issue, :Jobs => :Job, :Logs => :Log, :Stats => :Stat} const_get(mapping[const_name] || const_name) end |