Class: Rake::PseudoStatus
Overview
Exit status class for times the system just gives us a nil.
Instance Attribute Summary (collapse)
-
- (Object) exitstatus
readonly
Returns the value of attribute exitstatus.
Instance Method Summary (collapse)
- - (Object) >>(n)
- - (Boolean) exited?
-
- (PseudoStatus) initialize(code = 0)
constructor
A new instance of PseudoStatus.
- - (Boolean) stopped?
- - (Object) to_i
Constructor Details
- (PseudoStatus) initialize(code = 0)
A new instance of PseudoStatus
311 312 313 |
# File 'lib/rake.rb', line 311 def initialize(code=0) @exitstatus = code end |
Instance Attribute Details
- (Object) exitstatus (readonly)
Returns the value of attribute exitstatus
310 311 312 |
# File 'lib/rake.rb', line 310 def exitstatus @exitstatus end |
Instance Method Details
- (Object) >>(n)
317 318 319 |
# File 'lib/rake.rb', line 317 def >>(n) to_i >> n end |
- (Boolean) exited?
323 324 325 |
# File 'lib/rake.rb', line 323 def exited? true end |
- (Boolean) stopped?
320 321 322 |
# File 'lib/rake.rb', line 320 def stopped? false end |
- (Object) to_i
314 315 316 |
# File 'lib/rake.rb', line 314 def to_i @exitstatus << 8 end |