Class: Wombat::Metadata
- Inherits:
-
PropertyContainer
- Object
- Hash
- PropertyContainer
- Wombat::Metadata
- Defined in:
- lib/wombat/metadata.rb
Instance Attribute Summary
Attributes inherited from PropertyContainer
Instance Method Summary collapse
- #base_url(url) ⇒ Object
- #format(format) ⇒ Object
-
#initialize ⇒ Metadata
constructor
A new instance of Metadata.
- #list_page(url) ⇒ Object
Methods inherited from PropertyContainer
#all_properties, #flatten, #for_each, #method_missing, #parse, #to_ary
Constructor Details
permalink #initialize ⇒ Metadata
Returns a new instance of Metadata.
7 8 9 10 |
# File 'lib/wombat/metadata.rb', line 7 def initialize self[:format] = :html super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wombat::PropertyContainer
Instance Method Details
permalink #base_url(url) ⇒ Object
[View source]
12 13 14 |
# File 'lib/wombat/metadata.rb', line 12 def base_url(url) self[:base_url] = url end |
permalink #format(format) ⇒ Object
[View source]
20 21 22 |
# File 'lib/wombat/metadata.rb', line 20 def format(format) self[:format] = format end |
permalink #list_page(url) ⇒ Object
[View source]
16 17 18 |
# File 'lib/wombat/metadata.rb', line 16 def list_page(url) self[:list_page] = url end |