Class: Bridgetown::Drops::SiteDrop

Inherits:
Drop
  • Object
show all
Extended by:
Forwardable
Defined in:
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.



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

def current_document=(value)
  @current_document = value
end

Instance Method Details

#configObject



43
44
45
# File 'lib/bridgetown-core/drops/site_drop.rb', line 43

def config
  @obj.config
end

#contentsObject



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

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

#metadataObject



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

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

#resourcesObject



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

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

#uses_resourceObject



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

def uses_resource
  @obj.uses_resource?
end