Sha256: 958397a96b860604a8e1cbcb5587b46c427f409827204d6f26ad3b4c3deaa17b

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

class Brief::Epic
  include Brief::Model

  meta do
    title
    subheading
    status String, :in => %w(draft published)
  end

  content do
    # have to do this so that the user stories section h1 doesnt get confused
    title "h1:first-of-type"

    define_section "User Stories" do
      # NOT YET Implemented
      each("h2").is_a :user_story

      each("h2").has(:title     => "h2",
                     :paragraph => "p:first-of-type",
                     :components   => "p:first-of-type strong"
                    )
    end
  end

  actions do
    def custom_action
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brief-1.2.0 spec/fixtures/example/models/epic.rb