Class: Marshalize

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

Instance Method Summary collapse

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