Sha256: 0a24e39ba6dcdd125477b7d660678764654b5b4f60c1e6d6152ae9add1a9f7cb

Contents?: true

Size: 155 Bytes

Versions: 6

Compression:

Stored size: 155 Bytes

Contents

# Educate Ruby 1.8.7 about the Symbol#empty? and Symbol#length methods.
class Symbol
  def length
    to_s.length
  end unless method_defined? :length
end

Version data entries

6 entries across 6 versions & 1 rubygems

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