Class: ConferenceTracker::CLI

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

Constant Summary collapse

HELP_FLAGS =
%w[-h --help]
COL_WIDTH =
23

Instance Method Summary collapse

Constructor Details

#initialize(input, pipe = STDOUT, scheduler = Scheduler) ⇒ CLI



8
9
10
11
12
13
14
# File 'lib/conference_tracker/cli.rb', line 8

def initialize(input, 
               pipe = STDOUT, 
               scheduler = Scheduler)
  @input = input
  @pipe = pipe
  @scheduler = scheduler
end

Instance Method Details

#callObject



16
17
18
# File 'lib/conference_tracker/cli.rb', line 16

def call
  @pipe.puts output
end