Class: Flumtter::Cli::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/flumtter/app/core/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(blk, args) ⇒ Command

Returns a new instance of Command.



4
5
6
7
# File 'lib/flumtter/app/core/cli.rb', line 4

def initialize(blk, args)
  @blk = blk
  @args = args
end

Instance Method Details

#run(twitter) ⇒ Object



9
10
11
# File 'lib/flumtter/app/core/cli.rb', line 9

def run(twitter)
  @blk.call(twitter, @args)
end