Class: Flumtter::Cli::Command
- Inherits:
-
Object
- Object
- Flumtter::Cli::Command
- Defined in:
- lib/flumtter/app/core/cli.rb
Instance Method Summary collapse
-
#initialize(blk, args) ⇒ Command
constructor
A new instance of Command.
- #run(twitter) ⇒ Object
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 |