Class: Unmarshalize

Inherits:
Object
  • Object
show all
Defined in:
lib/unmarshalize.rb

Instance Method Summary collapse

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