Class: Rucoa::Cli

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Cli

Returns a new instance of Cli.

Parameters:

  • argv (Array<String>)


12
13
14
# File 'lib/rucoa/cli.rb', line 12

def initialize(argv)
  @argv = argv
end

Class Method Details

.call(argv) ⇒ void

This method returns an undefined value.

Parameters:

  • argv (Array<String>)


7
8
9
# File 'lib/rucoa/cli.rb', line 7

def self.call(argv)
  new(argv).call
end

Instance Method Details

#callvoid

This method returns an undefined value.



17
18
19
20
21
22
23
# File 'lib/rucoa/cli.rb', line 17

def call
  Server.new(
    io_in: $stdin,
    io_log: $stderr,
    io_out: $stdout
  ).start
end