Class: FormObj::Attributes

Inherits:
TreeStruct::Attributes
  • Object
show all
Defined in:
lib/form_obj/attributes.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



9
10
11
# File 'lib/form_obj/attributes.rb', line 9

def each(&block)
  @items.each(&block)
end

#find(name) ⇒ Object



5
6
7
# File 'lib/form_obj/attributes.rb', line 5

def find(name)
  @items.find { |item| item.name == name.to_sym }
end