Sha256: 6582b0cc0680ec9d6e50f9dbf0c932284746f222101a689205162008fbf1b88a

Contents?: true

Size: 122 Bytes

Versions: 5

Compression:

Stored size: 122 Bytes

Contents

# Educate Ruby 1.8.7 about the String#chr method.
class String
  def chr
    self[0..0]
  end unless respond_to? :chr
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-1.5.4 lib/asciidoctor/core_ext/string/chr.rb
asciidoctor-1.5.3 lib/asciidoctor/core_ext/string/chr.rb
asciidoctor-1.5.2 lib/asciidoctor/core_ext/string/chr.rb
asciidoctor-1.5.1 lib/asciidoctor/core_ext/string/chr.rb
asciidoctor-1.5.0 lib/asciidoctor/core_ext/string/chr.rb