Module: N4j::Field::ClassMethods
- Defined in:
- lib/n4j/field.rb
Instance Method Summary collapse
Instance Method Details
#field(name) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/n4j/field.rb', line 6 def field(name) define_method name do data_access(name.to_s) end define_method "#{name}=" do |value| data_set(name, value) end end |