Method: Walt::Support.constant

Defined in:
lib/walt/support/const_get.rb

.constant(base, value) ⇒ Object

Constant.for(“UIViewAnimationOption”, value)



9
10
11
12
13
# File 'lib/walt/support/const_get.rb', line 9

def constant(base, value)
  return value if value.is_a? Numeric
  value = value.to_s.camelize
  Kernel.const_get("#{base}#{value}")
end