Class: Flowhook::Options

Inherits:
OptionParser
  • Object
show all
Defined in:
lib/flowhook/options.rb

Overview

rubocop:disable Metrics/LineLength The option parser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



7
8
9
10
11
12
# File 'lib/flowhook/options.rb', line 7

def initialize
  super

  prepare_options
  setup_options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/flowhook/options.rb', line 5

def options
  @options
end

Instance Method Details

#parse!(args = ARGV) ⇒ Object



14
15
16
17
# File 'lib/flowhook/options.rb', line 14

def parse!(args = ARGV)
  super
  options
end