123456789_123456789_123456789_123456789_123456789_

Class: Rake::PseudoStatus

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/rake/pseudo_status.rb

Overview

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

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(code = 0) ⇒ PseudoStatus

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 9

def initialize(code=0)
  @exitstatus = code
end

Instance Attribute Details

#exited?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 25

def exited?
  true
end

#exitstatus (readonly)

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 7

attr_reader :exitstatus

#stopped?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 21

def stopped?
  false
end

Instance Method Details

#>>(n)

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 17

def >>(n)
  to_i >> n
end

#to_i

[ GitHub ]

  
# File 'lib/rake/pseudo_status.rb', line 13

def to_i
  @exitstatus << 8
end