Sha256: 464149e64485127009b9627c81b9255f31042e4145a56d821b9994247caeace6

Contents?: true

Size: 405 Bytes

Versions: 7269

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true
module Rake

  ##
  # Exit status class for times the system just gives us a nil.
  class PseudoStatus # :nodoc: all
    attr_reader :exitstatus

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

    def to_i
      @exitstatus << 8
    end

    def >>(n)
      to_i >> n
    end

    def stopped?
      false
    end

    def exited?
      true
    end
  end

end

Version data entries

7,269 entries across 7,157 versions & 101 rubygems

Version Path
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/lib/rake/pseudo_status.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/lib/rake/pseudo_status.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/lib/rake/pseudo_status.rb
rake-12.3.0 lib/rake/pseudo_status.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/pseudo_status.rb
rake-12.2.1 lib/rake/pseudo_status.rb
rake-12.2.0 lib/rake/pseudo_status.rb
tdiary-5.0.6 vendor/bundle/gems/rake-12.1.0/lib/rake/pseudo_status.rb
rake-12.1.0 lib/rake/pseudo_status.rb