Skip to content
/ mag Public

Mag is a simple library that abbreviates MagLev object persistence commands.

Notifications You must be signed in to change notification settings

havenwood/mag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mag

What?

A very simple library to allow you to type less with Maglev when committing or aborting to Maglev's NOSQL dark magic.

Why?

I'm lazy, and "Mag.commit" saves me from typing 15 characters over "Maglev.commit_transaction"! Even better, "Mag.box" saves... I dun wanna count... characters over "Maglev::PERSISTENT_ROOT". =P

How do I use it?

First load the library:

require 'rubygems'
require 'mag'

Now you have Mag's shorter Maglev commands:

Mag.commit # Maglev.commit_transaction
Mag.abort  # Maglev.abort_transaction
Mag.box    # Maglev::PERSISTENT_ROOT

About

Mag is a simple library that abbreviates MagLev object persistence commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages