Sha256: dc412378930793666398c367230470e783717c9a9aa415253cfee48ed7461c82

Contents?: true

Size: 571 Bytes

Versions: 4

Compression:

Stored size: 571 Bytes

Contents

#coding: utf-8
require 'wombat/dsl/property_group'
require 'wombat/dsl/iterator'
require 'wombat/dsl/follower'
require 'wombat/dsl/headers'

module Wombat
  module DSL
    class Metadata < PropertyGroup
      def initialize
        self[:document_format] = :html
        super
      end

      def base_url(url)
        self[:base_url] = url
      end

      def path(url)
        self[:path] = url
      end

      def document_format(format)
        self[:document_format] = format
      end

      def page(page)
        self[:page] = page
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wombat-2.4.0 lib/wombat/dsl/metadata.rb
wombat-2.3.0 lib/wombat/dsl/metadata.rb
wombat-2.2.1 lib/wombat/dsl/metadata.rb
wombat-2.2.0 lib/wombat/dsl/metadata.rb