Class: FormObj::Form::Attributes
- Inherits:
-
Struct::Attributes
- Object
- Struct::Attributes
- FormObj::Form::Attributes
- Defined in:
- lib/form_obj/form/attributes.rb
Instance Method Summary collapse
Methods inherited from Struct::Attributes
Constructor Details
This class inherits a constructor from FormObj::Struct::Attributes
Instance Method Details
#each(&block) ⇒ Object
8 9 10 |
# File 'lib/form_obj/form/attributes.rb', line 8 def each(&block) @items.each(&block) end |
#find(name) ⇒ Object
4 5 6 |
# File 'lib/form_obj/form/attributes.rb', line 4 def find(name) @items.find { |item| item.name == name.to_sym } end |