Class: Bridgetown::Drops::SiteDrop

Inherits:
Drop
  • Object
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

Constructor Details

This class inherits a constructor from Bridgetown::Drops::Drop

Instance Attribute Details

#current_document=(value) ⇒ Object (writeonly)

Sets the attribute current_document

Parameters:

  • value

    the value to set the attribute current_document to.



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

#configObject



38
39
40
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 38

def config
  @obj.config
end

#contentsObject



30
31
32
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 30

def contents
  @contents ||= @obj.contents
end

#metadataObject



34
35
36
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 34

def 
  @site_metadata ||= @obj.data["site_metadata"]
end

#resourcesObject



26
27
28
# File 'bridgetown-core/lib/bridgetown-core/drops/site_drop.rb', line 26

def resources
  @resources ||= @obj.resources
end