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-4.2.0 bundle/ruby/2.3.0/gems/highline-1.7.10/lib/highline/compatibility.rb
skylight-1.5.1 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-2.0.0.beta2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-2.0.0.beta1 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/highline-1.7.10/lib/highline/compatibility.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/highline-1.7.10/lib/highline/compatibility.rb
skylight-1.5.0 lib/skylight/vendor/cli/highline/compatibility.rb
highline-1.7.10 lib/highline/compatibility.rb
skylight-1.4.4 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.4.3 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.4.2 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.4.1 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.4.0 lib/skylight/vendor/cli/highline/compatibility.rb
skylight-1.4.0.beta.2 lib/skylight/vendor/cli/highline/compatibility.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb
skylight-1.4.0.beta lib/skylight/vendor/cli/highline/compatibility.rb