Sha256: ec3710344deaebd3f80a756f3b755db671be46db8f090060288c1583f8b75cfb

Contents?: true

Size: 427 Bytes

Versions: 31

Compression:

Stored size: 427 Bytes

Contents

class Brief::Apps::Blueprint::Outline
  include Brief::Model

  defined_in Pathname(__FILE__)

  meta do
    type
    title
    tags Array
  end

  content do
    headings "h1,h2,h3,h4,h5,h6"
    settings "code.yaml:first-of-type", :serialize => :yaml, :hide => true

    nested_links "li a"

    items "ul > li"
    nested_items "ul > li li"
  end

  helpers do
    def link_elements
      document.css('a')
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
brief-1.15.2 apps/blueprint/models/outline.rb
brief-1.15.1 apps/blueprint/models/outline.rb
brief-1.15.0 apps/blueprint/models/outline.rb
brief-1.14.3 apps/blueprint/models/outline.rb
brief-1.14.2 apps/blueprint/models/outline.rb
brief-1.14.1 apps/blueprint/models/outline.rb
brief-1.14.0 apps/blueprint/models/outline.rb
brief-1.13.2 apps/blueprint/models/outline.rb
brief-1.13.1 apps/blueprint/models/outline.rb
brief-1.12.9 apps/blueprint/models/outline.rb
brief-1.12.8 apps/blueprint/models/outline.rb