Class: Pcli::CommandOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/pcli/command_output.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(halt) ⇒ CommandOutput



15
16
17
# File 'lib/pcli/command_output.rb', line 15

def initialize(halt)
  @halt = halt
end

Class Method Details

.continueObject



10
11
12
# File 'lib/pcli/command_output.rb', line 10

def continue
  new(false)
end

.haltObject



6
7
8
# File 'lib/pcli/command_output.rb', line 6

def halt
  new(true)
end

Instance Method Details

#halt?Boolean



19
20
21
# File 'lib/pcli/command_output.rb', line 19

def halt?
  @halt
end