Class: Messed::Interface::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runnable, options) ⇒ Runner

Returns a new instance of Runner.



9
10
11
12
# File 'lib/messed/interface/runner.rb', line 9

def initialize(runnable, options)
  @runnable = runnable
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/messed/interface/runner.rb', line 7

def options
  @options
end

#runnableObject (readonly)

Returns the value of attribute runnable.



7
8
9
# File 'lib/messed/interface/runner.rb', line 7

def runnable
  @runnable
end

Instance Method Details

#startObject



14
15
16
# File 'lib/messed/interface/runner.rb', line 14

def start
  runnable.start(options[:detach])
end