Class: RubyPitaya::InstanceHolder
- Defined in:
- lib/rubypitaya/core/instance_holder.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/instance_holder.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #add(key, instance) ⇒ Object
-
#initialize ⇒ InstanceHolder
constructor
A new instance of InstanceHolder.
Constructor Details
#initialize ⇒ InstanceHolder
Returns a new instance of InstanceHolder.
5 6 7 |
# File 'lib/rubypitaya/core/instance_holder.rb', line 5 def initialize @instances = {} end |