Sha256: 487964b25cf06c15ec238fc04cf24e448a7f7a89623ed79173cc7c8a328e7f61
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
module Oxidized class Source class NoConfig < OxidizedError; end def initialize @model_map = Oxidized.config.model_map || {} @group_map = Oxidized.config.group_map || {} end def map_model(model) @model_map.has_key?(model) ? @model_map[model] : model end def map_group(group) @group_map.has_key?(group) ? @group_map[group] : group end def node_var_interpolate(var) case var when "nil" then nil when "false" then false when "true" then true else var end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/source/source.rb |
oxidized-0.30.0 | lib/oxidized/source/source.rb |