Class: TableBeet::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = nil) ⇒ CLI

Returns a new instance of CLI.



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

def initialize(opts = nil)
  @runner = TableBeet::Runner.new(opts || parse_options)
end

Class Method Details

.run(opts = nil) ⇒ Object



15
16
17
# File 'lib/table_beet/cli.rb', line 15

def self.run(opts = nil)
  TableBeet::CLI.new(opts).run
end

Instance Method Details

#runObject



11
12
13
# File 'lib/table_beet/cli.rb', line 11

def run
  @runner.run
end