Sha256: ffed533a8cf75e96a802c79c9d1de50aaef1e7a99a06cf9c17956043ed4ada7c

Contents?: true

Size: 305 Bytes

Versions: 80

Compression:

Stored size: 305 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

80 entries across 79 versions & 11 rubygems

Version Path
delano-rye-0.6.2 vendor/highline-1.5.1/lib/highline/compatibility.rb
delano-rye-0.6.3 vendor/highline-1.5.1/lib/highline/compatibility.rb
delano-rye-0.6.4 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.0 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.1 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.2 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.3 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.4 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.5 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.6 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.7 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.6.8 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.7.0 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.7.1 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.7.2 vendor/highline-1.5.1/lib/highline/compatibility.rb
solutious-rudy-0.7.3 vendor/highline-1.5.1/lib/highline/compatibility.rb
kajam-1.0.3.rc2 vendor/highline/lib/highline/compatibility.rb
radiant-1.0.0.rc2 vendor/highline/lib/highline/compatibility.rb
radiant-1.0.0.rc1 vendor/highline/lib/highline/compatibility.rb
radiantcms-couchrest_model-0.2.4 vendor/highline/lib/highline/compatibility.rb