Class: Marshalize
- Inherits:
-
Object
- Object
- Marshalize
- Defined in:
- lib/marshalize.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Marshalize
constructor
A new instance of Marshalize.
Constructor Details
#initialize(args) ⇒ Marshalize
Returns a new instance of Marshalize.
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/marshalize.rb', line 2 def initialize(args) if args.size == 4 if args[0] == '-i' && args[2] == '-o' @path_input = args[1] @path_output = args[3] begin do_marshalize rescue end end end end |