Sha256: 2d347769722798de1fe26e379911077719a62b1441eebaa274b3e70d13a6aa0c

Contents?: true

Size: 300 Bytes

Versions: 301

Compression:

Stored size: 300 Bytes

Contents

unless STDIN.respond_to? :getbyte
  class IO
    alias_method :getbyte, :getc
  end

  class StringIO
    alias_method :getbyte, :getc
  end
end

unless "".respond_to? :each_line
  # Not a perfect translation, but sufficient for our needs.
  class String
    alias_method :each_line, :each
  end
end

Version data entries

301 entries across 287 versions & 16 rubygems

Version Path
skylight-4.1.1.beta lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.1.0 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.1 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0.beta3 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-3.1.5 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-4.5.0 bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb
skylight-4.0.0.beta2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0.beta lib/skylight/vendor/cli/highline/compatibility.rb
skylight-3.1.4 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-3.1.3 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-4.4.0 bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb
skylight-4.0.0.alpha4 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0.alpha3 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0.alpha2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-3.1.3.beta lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.7.2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-4.0.0.alpha lib/skylight/vendor/cli/highline/compatibility.rb
skylight-3.1.2 lib/skylight/vendor/cli/highline/compatibility.rb