Module: GGem::CLI::ValidCommand::InstanceMethods
- Defined in:
- lib/ggem/cli/commands.rb
Instance Method Summary collapse
- #clirb ⇒ Object
- #initialize(&clirb_build) ⇒ Object
- #run(argv, stdout = nil, stderr = nil) ⇒ Object
- #summary ⇒ Object
Instance Method Details
#clirb ⇒ Object
49 |
# File 'lib/ggem/cli/commands.rb', line 49 def clirb; @clirb; end |
#initialize(&clirb_build) ⇒ Object
45 46 47 |
# File 'lib/ggem/cli/commands.rb', line 45 def initialize(&clirb_build) @clirb = CLIRB.new(&clirb_build) end |
#run(argv, stdout = nil, stderr = nil) ⇒ Object
51 52 53 54 55 |
# File 'lib/ggem/cli/commands.rb', line 51 def run(argv, stdout = nil, stderr = nil) @clirb.parse!(argv) @stdout = stdout || $stdout @stderr = stderr || $stderr end |
#summary ⇒ Object
57 58 59 |
# File 'lib/ggem/cli/commands.rb', line 57 def summary '' end |