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
brakeman-3.7.0 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.3.1 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.3.0 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.2.2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.2.1 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.2.0 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.1.0 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.0.1 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.0.0 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-0.10.6 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.0.0.beta5 lib/skylight/vendor/cli/highline/compatibility.rb