Module: PoolParty::Callbacks::ProcStoreMethods
- Defined in:
- lib/modules/callback.rb
Instance Method Summary collapse
Instance Method Details
#get_proc(num) ⇒ Object
119 120 121 |
# File 'lib/modules/callback.rb', line 119 def get_proc(num) proc_storage[num] end |
#proc_storage ⇒ Object
122 123 124 |
# File 'lib/modules/callback.rb', line 122 def proc_storage @proc_store ||= [] end |
#store_proc(proc) ⇒ Object
115 116 117 118 |
# File 'lib/modules/callback.rb', line 115 def store_proc(proc) proc_storage << proc proc_storage.index(proc) end |