class Oxidized::Source
Public Class Methods
new()
click to toggle source
# File lib/oxidized/source/source.rb, line 5 def initialize @model_map = Oxidized.config.model_map || {} @group_map = Oxidized.config.group_map || {} end
Public Instance Methods
map_group(group)
click to toggle source
# File lib/oxidized/source/source.rb, line 14 def map_group(group) @group_map.has_key?(group) ? @group_map[group] : group end
map_model(model)
click to toggle source
# File lib/oxidized/source/source.rb, line 10 def map_model(model) @model_map.has_key?(model) ? @model_map[model] : model end
node_var_interpolate(var)
click to toggle source
# File lib/oxidized/source/source.rb, line 18 def node_var_interpolate(var) case var when "nil" then nil when "false" then false when "true" then true else var end end