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
|
#data(data) ⇒ Object
27
28
29
|
# File 'lib/wombat/dsl/metadata.rb', line 27
def data(data)
self[:data] = data
end
|
31
32
33
|
# File 'lib/wombat/dsl/metadata.rb', line 31
def document_format(format)
self[:document_format] = format
end
|
#http_method(http_method) ⇒ Object
23
24
25
|
# File 'lib/wombat/dsl/metadata.rb', line 23
def http_method(http_method)
self[:http_method] = http_method
end
|
#page(page) ⇒ Object
35
36
37
|
# File 'lib/wombat/dsl/metadata.rb', line 35
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
|