Sha256: 5350d5714eefb32ac90e949d60957b74ccfd770ac73645139595a263053c7c72

Contents?: true

Size: 297 Bytes

Versions: 92

Compression:

Stored size: 297 Bytes

Contents

module Brief::Document::Templating
  extend ActiveSupport::Concern

  def generate_content
    model_class.generate_template_content_from(@frontmatter)
  end

  module ClassMethods
    def create_from_data(data = {})
      data = data.to_mash if data.is_a?(Hash)
      new(data)
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
brief-1.17.14 lib/brief/document/templating.rb
brief-1.17.13 lib/brief/document/templating.rb
brief-1.17.12 lib/brief/document/templating.rb
brief-1.17.11 lib/brief/document/templating.rb
brief-1.17.10 lib/brief/document/templating.rb
brief-1.17.9 lib/brief/document/templating.rb
brief-1.17.8 lib/brief/document/templating.rb
brief-1.17.7 lib/brief/document/templating.rb
brief-1.17.5 lib/brief/document/templating.rb
brief-1.17.4 lib/brief/document/templating.rb
brief-1.17.3 lib/brief/document/templating.rb
brief-1.17.2 lib/brief/document/templating.rb
brief-1.17.1 lib/brief/document/templating.rb
brief-1.17.0 lib/brief/document/templating.rb
brief-1.16.2 lib/brief/document/templating.rb
brief-1.16.1 lib/brief/document/templating.rb
brief-1.16.0 lib/brief/document/templating.rb
brief-1.15.5 lib/brief/document/templating.rb
brief-1.15.4 lib/brief/document/templating.rb
brief-1.15.3 lib/brief/document/templating.rb