Class: Xmindoc::Exec
- Inherits:
-
Object
- Object
- Xmindoc::Exec
- Defined in:
- lib/xmindoc.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv) ⇒ Exec
constructor
A new instance of Exec.
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
#execute ⇒ Object
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 |