Sha256: cee32c924be6f0ebeb9fe8da61d8d2fcd29bcd56775bc3ae0823ae7ef11b5586

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

require 'awestruct/handlers/base_handler'
require 'awestruct/util/yaml_load'

module Awestruct
  module Handlers
    class YamlHandler < BaseHandler

      def initialize(site, delegate)
        super
      end

      def front_matter
        return @front_matter if @front_matter
        @front_matter = Awestruct.yaml_load( delegate.raw_content )
        @front_matter
      end

      def raw_content
        nil
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awestruct-0.6.7 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.6 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.5 lib/awestruct/handlers/yaml_handler.rb