Class: Xmindoc::Exec

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Exec

Returns a new instance of Exec.



142
143
144
# File 'lib/xmindoc.rb', line 142

def initialize(argv)
  @argv = argv
end

Class Method Details

.run(argv) ⇒ Object



146
147
148
# File 'lib/xmindoc.rb', line 146

def self.run(argv)
  new(argv).execute
end

Instance Method Details

#executeObject



150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/xmindoc.rb', line 150

def execute
  command = Xmindoc::Command.new(@argv)
  command.parse()

  core = Xmindoc::Core.new(command.option)
  core.convert()

  # (debug) Confirm options
  if Xmindoc::DEBUG
    print 'option: '
    pp command.option
  end
end