Method: Ufo::Names#var_value

Defined in:
lib/ufo/names.rb

#var_value(unexpanded) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/ufo/names.rb', line 59

def var_value(unexpanded)
  name = unexpanded.sub(':','').downcase
  if respond_to?(name)
    send(name).to_s # pass value straight through
  else
    unexpanded
  end
end