Class: Swagcov::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args: ::ARGV) ⇒ Runner

Returns a new instance of Runner.



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

def initialize args: ::ARGV
  @args = args
  @options = ::Swagcov::Options.new(args: @args).define
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#runObject



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

def run
  exit runner
end