Class: Oxidized::Source
- Inherits:
-
Object
- Object
- Oxidized::Source
- Defined in:
- lib/oxidized/source/source.rb
Defined Under Namespace
Classes: NoConfig
Instance Method Summary collapse
-
#initialize ⇒ Source
constructor
A new instance of Source.
- #map_model(model) ⇒ Object
Constructor Details
#initialize ⇒ Source
Returns a new instance of Source.
4 5 6 |
# File 'lib/oxidized/source/source.rb', line 4 def initialize @map = (CFG.model_map or {}) end |
Instance Method Details
#map_model(model) ⇒ Object
7 8 9 |
# File 'lib/oxidized/source/source.rb', line 7 def map_model model @map.has_key?(model) ? @map[model] : model end |