Class: IronNails::Models::BindableCollection
- Inherits:
-
Object
- Object
- IronNails::Models::BindableCollection
- Defined in:
- lib/ironnails/models/bindable_collection.rb
Instance Method Summary collapse
-
#initialize(*list) ⇒ BindableCollection
constructor
A new instance of BindableCollection.
Constructor Details
#initialize(*list) ⇒ BindableCollection
Returns a new instance of BindableCollection.
7 8 9 |
# File 'lib/ironnails/models/bindable_collection.rb', line 7 def initialize(*list) list.map { |item| self.add item } end |