Sha256: 65d470f227927ce47833a07ab649fe9d856098bb021d11a775a0fd00a5a16727

Contents?: true

Size: 132 Bytes

Versions: 5

Compression:

Stored size: 132 Bytes

Contents

# Educate Ruby 1.8.7 about the Symbol#length method.
class Symbol
  def length
    to_s.length
  end unless respond_to? :length
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-1.5.4 lib/asciidoctor/core_ext/symbol/length.rb
asciidoctor-1.5.3 lib/asciidoctor/core_ext/symbol/length.rb
asciidoctor-1.5.2 lib/asciidoctor/core_ext/symbol/length.rb
asciidoctor-1.5.1 lib/asciidoctor/core_ext/symbol/length.rb
asciidoctor-1.5.0 lib/asciidoctor/core_ext/symbol/length.rb