Class: Applause::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args:, options:, parser: Parser.new) ⇒ Runner

Returns a new instance of Runner.



7
8
9
10
11
# File 'lib/applause/runner.rb', line 7

def initialize(args:, options:, parser: Parser.new)
  @args    = args
  @options = options
  @parser  = parser
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/applause/runner.rb', line 5

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/applause/runner.rb', line 5

def options
  @options
end

#parserObject (readonly)

Returns the value of attribute parser.



5
6
7
# File 'lib/applause/runner.rb', line 5

def parser
  @parser
end

Instance Method Details

#runObject



13
14
15
# File 'lib/applause/runner.rb', line 13

def run
  run_options(args_list)
end