In Files

  • rake/pseudo_status.rb

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 rake/pseudo_status.rb, line 8
def initialize(code=0)
  @exitstatus = code
end
            

Public Instance Methods

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

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus