Class: Fried::Test::GetOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/fried/test/get_options.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildObject



6
7
8
# File 'lib/fried/test/get_options.rb', line 6

def self.build
  new
end

.callObject



10
11
12
13
# File 'lib/fried/test/get_options.rb', line 10

def self.call
  instance = build
  instance.()
end

Instance Method Details

#call(argv) ⇒ Options

Parameters:

  • argv (Array<String>)

Returns:



17
18
19
20
# File 'lib/fried/test/get_options.rb', line 17

def call(argv)
  file = ARGV.last
  Options.build(file: file)
end