Sha256: 64d1094d9b80ea99e17b4162a55d4cbe58f328943c549f9336a2dc5bac9d7a2f

Contents?: true

Size: 126 Bytes

Versions: 6

Compression:

Stored size: 126 Bytes

Contents

# Educate Ruby 1.8.7 about the String#chr method.
class String
  def chr
    slice 0, 1
  end unless method_defined? :chr
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
asciidoctor-1.5.8 lib/asciidoctor/core_ext/1.8.7/string/chr.rb
asciidoctor-1.5.7.1 lib/asciidoctor/core_ext/1.8.7/string/chr.rb
asciidoctor-1.5.7 lib/asciidoctor/core_ext/1.8.7/string/chr.rb
asciidoctor-1.5.6.2 lib/asciidoctor/core_ext/1.8.7/string/chr.rb
asciidoctor-1.5.6.1 lib/asciidoctor/core_ext/1.8.7/string/chr.rb
asciidoctor-1.5.6 lib/asciidoctor/core_ext/1.8.7/string/chr.rb