class Rake::PseudoStatus

Exit status class for times the system just gives us a nil.

Attributes

exitstatus[R]

Public Class Methods

new(code=0) click to toggle source
# File lib/rake/pseudo_status.rb, line 7
def initialize(code=0)
  @exitstatus = code
end

Public Instance Methods

>>(n) click to toggle source
# File lib/rake/pseudo_status.rb, line 13
def >>(n)
  to_i >> n
end
exited?() click to toggle source
# File lib/rake/pseudo_status.rb, line 19
def exited?
  true
end
stopped?() click to toggle source
# File lib/rake/pseudo_status.rb, line 16
def stopped?
  false
end
to_i() click to toggle source
# File lib/rake/pseudo_status.rb, line 10
def to_i
  @exitstatus << 8
end