Class: Wombat::DSL::Metadata
Instance Attribute Summary
#wombat_property_name
Instance Method Summary
collapse
#method_missing, #to_ary, #wombat_property_format, #wombat_property_namespaces
Constructor Details
Returns a new instance of Metadata.
10
11
12
13
|
# File 'lib/wombat/dsl/metadata.rb', line 10
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
15
16
17
|
# File 'lib/wombat/dsl/metadata.rb', line 15
def base_url(url)
self[:base_url] = url
end
|
23
24
25
|
# File 'lib/wombat/dsl/metadata.rb', line 23
def document_format(format)
self[:document_format] = format
end
|
#page(page) ⇒ Object
27
28
29
|
# File 'lib/wombat/dsl/metadata.rb', line 27
def page(page)
self[:page] = page
end
|
#path(url) ⇒ Object
19
20
21
|
# File 'lib/wombat/dsl/metadata.rb', line 19
def path(url)
self[:path] = url
end
|