Sha256: de7eba8057eda74a4baa942f68064038bac3ba268de2bb6a87bbbf8c02528573

Contents?: true

Size: 415 Bytes

Versions: 26

Compression:

Stored size: 415 Bytes

Contents

require 'awestruct/handlers/base_handler'
require 'yaml'

module Awestruct
  module Handlers
    class YamlHandler < BaseHandler

      def initialize(site, delegate)
        super
      end

      def front_matter
        return @front_matter if @front_matter
        @front_matter = YAML.load( delegate.raw_content )
        @front_matter
      end

      def raw_content
        nil
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
awestruct-0.6.4 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.3 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.2 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.1 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.0 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.0.RC1 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.0.alpha4 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.0.alpha3 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.6.0.alpha1 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.7 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.7.RC2 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.7.RC1 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta9 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta8 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta7 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta6 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta5 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta4 lib/awestruct/handlers/yaml_handler.rb
awestruct-0.5.6.beta3 lib/awestruct/handlers/yaml_handler.rb