Class: Percept::CheckboxCollection
- Inherits:
-
Object
- Object
- Percept::CheckboxCollection
- Includes:
- Enumerable
- Defined in:
- lib/percept/checkbox_collection.rb
Instance Attribute Summary collapse
-
#checkboxes ⇒ Object
Returns the value of attribute checkboxes.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize ⇒ CheckboxCollection
constructor
A new instance of CheckboxCollection.
Constructor Details
#initialize ⇒ CheckboxCollection
Returns a new instance of CheckboxCollection.
9 10 11 |
# File 'lib/percept/checkbox_collection.rb', line 9 def initialize self.checkboxes = [] end |
Instance Attribute Details
#checkboxes ⇒ Object
Returns the value of attribute checkboxes.
7 8 9 |
# File 'lib/percept/checkbox_collection.rb', line 7 def checkboxes @checkboxes end |
Instance Method Details
#each ⇒ Object
13 14 15 |
# File 'lib/percept/checkbox_collection.rb', line 13 def each checkboxes.each { |checkbox| yield(checkbox) } end |