Sha256: a8a150650ba0562cc00ce06d6c2c65ed9d634441101ac2642302c90c2ee6d73b

Contents?: true

Size: 273 Bytes

Versions: 28

Compression:

Stored size: 273 Bytes

Contents

module SectionContent
  class Section < Treetop::Runtime::SyntaxNode
    def name
      title.text_value.strip
    end

    def description
      text.to_s
    end

    def full_name
      name
    end
    
    def id
      name.downcase.gsub(/\s+/, "_")
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
distil-0.14.4 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.3 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.2 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.2.a vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.1 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.1.a vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.i vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.h vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.g vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.d vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.c vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.14.0.b vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.6 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.5 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.4 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.3 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.2 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.1 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb
distil-0.13.0 vendor/pdoc/lib/pdoc/parser/section_content_nodes.rb