Class: ConferenceTracker::CLI
- Inherits:
-
Object
- Object
- ConferenceTracker::CLI
- Defined in:
- lib/conference_tracker/cli.rb
Constant Summary collapse
- HELP_FLAGS =
%w[-h --help]- COL_WIDTH =
23
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(input, pipe = STDOUT, scheduler = Scheduler) ⇒ CLI
constructor
A new instance of CLI.
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
#call ⇒ Object
16 17 18 |
# File 'lib/conference_tracker/cli.rb', line 16 def call @pipe.puts output end |