Class: Unmarshalize
- Inherits:
-
Object
- Object
- Unmarshalize
- Defined in:
- lib/unmarshalize.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Unmarshalize
constructor
A new instance of Unmarshalize.
Constructor Details
#initialize(args) ⇒ Unmarshalize
Returns a new instance of Unmarshalize.
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/unmarshalize.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_unmarshalize rescue end end end end |