Class: Wombat::DSL::Metadata

Inherits:
PropertyGroup show all
Defined in:
lib/wombat/dsl/metadata.rb

Instance Attribute Summary

Attributes inherited from PropertyGroup

#wombat_property_name

Instance Method Summary collapse

Methods inherited from PropertyGroup

#method_missing, #to_ary, #wombat_property_format, #wombat_property_namespaces

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.



9
10
11
12
# File 'lib/wombat/dsl/metadata.rb', line 9

def initialize
  self[:document_format] = :html
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wombat::DSL::PropertyGroup

Instance Method Details

#base_url(url) ⇒ Object



14
15
16
# File 'lib/wombat/dsl/metadata.rb', line 14

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

#document_format(format) ⇒ Object



22
23
24
# File 'lib/wombat/dsl/metadata.rb', line 22

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

#path(url) ⇒ Object



18
19
20
# File 'lib/wombat/dsl/metadata.rb', line 18

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