Class: Commander::Command
- Inherits:
-
Object
- Object
- Commander::Command
- Defined in:
- lib/brief/cli/01_extensions.rb
Instance Method Summary collapse
Instance Method Details
#action(*args, &block) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/brief/cli/01_extensions.rb', line 2 def action(*args, &block) Brief.(self) when_called do |args, | .default(root: Brief.pwd) Brief.case = Brief::Briefcase.new(root: Pathname(.root)) block.call(args, ) end end |