Fieldable encapsulates methods in common for classes which may have their fields set and subsequently be auto-extended by ArrayFields
access to field list
# File lib/arrayfields.rb, line 328 def fields *values return(send('fields=', *values)) unless values.empty? fieldset and fieldset.fields end
sets fields and dynamically extends this Array instance with methods for keyword access
# File lib/arrayfields.rb, line 309 def fields= fields extend ArrayFields unless ArrayFields === self @fieldset = if ArrayFields::FieldSet === fields fields else ArrayFields::FieldSet.new fields end end
Generated with the Darkfish Rdoc Generator 2.