Class: Ez::Resources::Manager::Fields
- Inherits:
-
Object
- Object
- Ez::Resources::Manager::Fields
- Defined in:
- lib/ez/resources/manager/fields.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
- #action(name, builder, options = {}) ⇒ Object
- #field(name, options = {}) ⇒ Object (also: #column)
-
#initialize(&block) ⇒ Fields
constructor
A new instance of Fields.
Constructor Details
#initialize(&block) ⇒ Fields
Returns a new instance of Fields.
12 13 14 15 16 17 |
# File 'lib/ez/resources/manager/fields.rb', line 12 def initialize(&block) @fields = [] @actions = [] instance_eval(&block) end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
10 11 12 |
# File 'lib/ez/resources/manager/fields.rb', line 10 def actions @actions end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
10 11 12 |
# File 'lib/ez/resources/manager/fields.rb', line 10 def fields @fields end |