Sha256: 50421104e270b2bb895e27d9f2695420d4ea1c4d6b2244768b5ee0a0a801cf02

Contents?: true

Size: 609 Bytes

Versions: 81

Compression:

Stored size: 609 Bytes

Contents

# coding: utf-8

unless STDIN.respond_to? :getbyte
  # HighLine adds #getbyte alias to #getc when #getbyte is not available.
  class IO
    # alias to #getc when #getbyte is not available
    alias getbyte getc
  end

  # HighLine adds #getbyte alias to #getc when #getbyte is not available.
  class StringIO
    # alias to #getc when #getbyte is not available
    alias getbyte getc
  end
end

unless "".respond_to? :each_line
  # HighLine adds #each_line alias to #each when each_line is not available.
  class String
    # alias to #each when each_line is not available.
    alias each_line each
  end
end

Version data entries

81 entries across 67 versions & 4 rubygems

Version Path
highline-3.1.2 lib/highline/compatibility.rb
brakeman-7.0.0 bundle/ruby/3.1.0/gems/highline-3.1.1/lib/highline/compatibility.rb
brakeman-6.2.2 bundle/ruby/3.1.0/gems/highline-3.1.1/lib/highline/compatibility.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/highline-3.1.1/lib/highline/compatibility.rb
highline-3.1.1 lib/highline/compatibility.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/highline-3.1.0/lib/highline/compatibility.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/highline-3.1.0/lib/highline/compatibility.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/highline-3.0.1/lib/highline/compatibility.rb
highline-3.1.0 lib/highline/compatibility.rb
brakeman-6.1.2 bundle/ruby/3.3.0/gems/highline-3.0.1/lib/highline/compatibility.rb
highline-3.0.1 lib/highline/compatibility.rb
highline-3.0.0 lib/highline/compatibility.rb
brakeman-6.1.1 bundle/ruby/3.0.0/gems/highline-2.1.0/lib/highline/compatibility.rb
brakeman-6.1.0 bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/compatibility.rb
brakeman-6.0.1 bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/compatibility.rb
brakeman-6.0.0 bundle/ruby/3.0.0/gems/highline-2.1.0/lib/highline/compatibility.rb
highline-3.0.0.pre.1 lib/highline/compatibility.rb
brakeman-5.4.1 bundle/ruby/3.1.0/gems/highline-2.1.0/lib/highline/compatibility.rb
highline-2.1.0 lib/highline/compatibility.rb
brakeman-5.4.0 bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/compatibility.rb