class Awestruct::Handlers::YamlHandler

Public Class Methods

new(site, delegate) click to toggle source
Calls superclass method Awestruct::Handlers::BaseHandler::new
# File lib/awestruct/handlers/yaml_handler.rb, line 8
def initialize(site, delegate)
  super
end

Public Instance Methods

front_matter() click to toggle source
# File lib/awestruct/handlers/yaml_handler.rb, line 12
def front_matter
  return @front_matter if @front_matter
  @front_matter = Awestruct.yaml_load( delegate.raw_content )
  @front_matter
end
raw_content() click to toggle source
# File lib/awestruct/handlers/yaml_handler.rb, line 18
def raw_content
  nil
end