Module: Eyra::ClassMethods
- Defined in:
- lib/eyra.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
Instance Method Summary collapse
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
24 25 26 |
# File 'lib/eyra.rb', line 24 def fields @fields end |
Instance Method Details
#dump_format(name, opts = {}, &block) ⇒ Object
26 27 28 29 |
# File 'lib/eyra.rb', line 26 def dump_format(name,opts={},&block) field = @fields.find{|e| e.name == name } field.opts[:dump_format] = block end |