Module: TeletaskApi::ConstantName

Included in:
Command, Function, Setting
Defined in:
lib/constants.rb

Instance Method Summary collapse

Instance Method Details

#name(val) ⇒ Object



3
4
5
# File 'lib/constants.rb', line 3

def name( val )
    constants.find{ |name| const_get(name)==val }
end