Module: CollectionClassMethods
- Included in:
- Cot::Collection
- Defined in:
- lib/cot/collection_class_methods.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass.
2 3 4 |
# File 'lib/cot/collection_class_methods.rb', line 2 def klass @klass end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/cot/collection_class_methods.rb', line 2 def @options end |
Instance Method Details
#collected_class(klass) ⇒ Object
4 5 6 |
# File 'lib/cot/collection_class_methods.rb', line 4 def collected_class(klass) @klass = klass end |
#set_default_values ⇒ Object
15 16 17 |
# File 'lib/cot/collection_class_methods.rb', line 15 def set_default_values @options ||= {} end |