Class: RuboCopter::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocopter/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/rubocopter/cli.rb', line 10

def options
  @options
end

Instance Method Details

#run(args = ARGV) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/rubocopter/cli.rb', line 12

def run(args = ARGV)
  parse_options(args)
  check_for_offences
  show_results

  return $?.exitstatus
end