Class: Beggar::CLI

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

Instance Method Summary (collapse)

Constructor Details

- (CLI) initialize(args = nil)

A new instance of CLI



3
4
5
# File 'lib/beggar/cli.rb', line 3

def initialize(args = nil)
  @config = load_config
end

Instance Method Details

- (Object) start



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

def start
  $stdout << Beggar::Base.new(@config).summary
end