Sha256: 4060f24b823d4bda1cf4ab8f976b0c89c63eb288547dde11e7189ad7f5892b7b

Contents?: true

Size: 375 Bytes

Versions: 407

Compression:

Stored size: 375 Bytes

Contents

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

407 entries across 343 versions & 88 rubygems

Version Path
hatena_bookmark_client_for_ruby-0.1.2 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
hatena_bookmark_client_for_ruby-0.1.0 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb
pomodorokun-0.1.0 bundle/ruby/2.4.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
cspeezy_palindrome-0.3.0 path/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
cspeezy_palindrome-0.2.0 path/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
cspeezy_palindrome-0.1.0 path/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
blackjack_jp-0.1.3 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
blackjack_jp-0.1.2 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
blackjack_jp-0.1.1 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
blackjack_jp-0.1.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
steenfest_palindrome-0.1.2 ruby/2.5/gems/rake-10.5.0/lib/rake/pseudo_status.rb
steenfest_palindrome-0.1.1b ruby/2.5/gems/rake-10.5.0/lib/rake/pseudo_status.rb
xaiml-0.1.3 vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
xaiml-0.1.2 vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb
rb2exe-0.3.1 bin/traveling-ruby-2.2.2/l32/lib/ruby/2.2.0/rake/pseudo_status.rb