Class: XYP::Runner

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRunner

Returns a new instance of Runner.



12
13
14
# File 'lib/xyp/runner.rb', line 12

def initialize
  @options={}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



10
11
12
# File 'lib/xyp/runner.rb', line 10

def options
  @options
end

Class Method Details

.run(*arguments) ⇒ Object



16
17
18
# File 'lib/xyp/runner.rb', line 16

def self.run *arguments
  new.run(arguments)
end

Instance Method Details

#run(arguments) ⇒ Object



20
21
22
23
# File 'lib/xyp/runner.rb', line 20

def run arguments
  options = parse_options(arguments)
  gui options
end