Class: Txray::Runtime::Stack
- Inherits:
-
Object
- Object
- Txray::Runtime::Stack
- Defined in:
- lib/txray/runtime/transaction.rb
Constant Summary collapse
- KEY =
:txray_transactions
Class Method Summary collapse
Class Method Details
.current ⇒ Object
40 |
# File 'lib/txray/runtime/transaction.rb', line 40 def current = frames.last |
.open? ⇒ Boolean
41 |
# File 'lib/txray/runtime/transaction.rb', line 41 def open? = !frames.empty? |
.pop ⇒ Object
39 |
# File 'lib/txray/runtime/transaction.rb', line 39 def pop = frames.pop |
.push(source) ⇒ Object
35 36 37 |
# File 'lib/txray/runtime/transaction.rb', line 35 def push(source) frames.push(Transaction.new(source)) end |