Method: Celerity::ElementCollection#initialize
- Defined in:
- lib/celerity/element_collection.rb
#initialize(container, how = nil, what = nil) ⇒ ElementCollection
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ElementCollection.
15 16 17 18 19 |
# File 'lib/celerity/element_collection.rb', line 15 def initialize(container, how = nil, what = nil) @container = container @object = (how == :object ? what : nil) @length = length end |