Class: Bridgetown::Drops::SiteDrop
- Inherits:
-
Drop
- Object
- Liquid::Drop
- Drop
- Bridgetown::Drops::SiteDrop
show all
- Extended by:
- Forwardable
- Defined in:
- bridgetown-core/lib/bridgetown-core/drops/site_drop.rb
Constant Summary
Constants inherited
from Drop
Drop::NON_CONTENT_METHODS
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Drop
#[], #[]=, #content_methods, #each, #each_key, #fetch, #hash_for_json, #initialize, #inspect, #key?, #keys, #merge, #merge!, mutable, mutable?, #to_h, #to_json
Instance Attribute Details
#current_document=(value) ⇒ Object
Sets the attribute current_document
24
25
26
|
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 24
def current_document=(value)
@current_document = value
end
|
Instance Method Details
#config ⇒ Object
38
39
40
|
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 38
def config
@obj.config
end
|
#contents ⇒ Object
30
31
32
|
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 30
def contents
@contents ||= @obj.contents
end
|
34
35
36
|
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 34
def metadata
@site_metadata ||= @obj.data["site_metadata"]
end
|
#resources ⇒ Object
26
27
28
|
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 26
def resources
@resources ||= @obj.resources
end
|