Module: Cassandra::Mapper::Utility::StoreInstances
- Included in:
- Cassandra::Mapper
- Defined in:
- lib/cassandra/mapper/utility/store_instances.rb
Instance Attribute Summary collapse
-
#instances ⇒ Object
readonly
Returns the value of attribute instances.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#instances ⇒ Object (readonly)
Returns the value of attribute instances.
7 8 9 |
# File 'lib/cassandra/mapper/utility/store_instances.rb', line 7 def instances @instances end |
Class Method Details
.extended(klass) ⇒ Object
3 4 5 |
# File 'lib/cassandra/mapper/utility/store_instances.rb', line 3 def self.extended(klass) klass.instance_variable_set :@instances, [] end |
Instance Method Details
#new ⇒ Object
9 10 11 |
# File 'lib/cassandra/mapper/utility/store_instances.rb', line 9 def new(*) super.tap {|it| @instances << it } end |