Module: Mag
- Defined in:
- lib/mag.rb,
lib/mag/version.rb
Constant Summary collapse
- VERSION =
"0.3.1"
Class Method Summary collapse
- .abort ⇒ Object (also: pull)
- .box ⇒ Object (also: store)
- .box=(this) ⇒ Object (also: store=)
- .commit ⇒ Object (also: push)
Class Method Details
.abort ⇒ Object Also known as: pull
11 12 13 |
# File 'lib/mag.rb', line 11 def abort Maglev.abort_transaction end |
.box ⇒ Object Also known as: store
17 18 19 |
# File 'lib/mag.rb', line 17 def box Maglev::PERSISTENT_ROOT end |
.box=(this) ⇒ Object Also known as: store=
23 24 25 |
# File 'lib/mag.rb', line 23 def box= this class_eval "Maglev::PERSISTENT_ROOT = this" end |
.commit ⇒ Object Also known as: push
5 6 7 |
# File 'lib/mag.rb', line 5 def commit Maglev.commit_transaction end |