Method: Quintype::API::BaseFunctions::ClassFunctions#coerce_key
- Defined in:
- lib/quintype/api/base_functions.rb
#coerce_key(key, clazz) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/quintype/api/base_functions.rb', line 20 def coerce_key(key, clazz) class_eval <<-EOF def #{key.to_s} #{clazz.name}.from_hash(i) end EOF end |