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
- #node_var_interpolate(var) ⇒ Object
Constructor Details
Instance Method Details
#map_model(model) ⇒ Object
9 10 11 |
# File 'lib/oxidized/source/source.rb', line 9 def map_model model @map.has_key?(model) ? @map[model] : model end |
#node_var_interpolate(var) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/oxidized/source/source.rb', line 13 def node_var_interpolate var case var when "nil" then nil when "false" then false when "true" then true else var end end |