Sha256: f3e549554b467f93c57e0d5ac06b4874c69aa33541cd0959ae2ee0e7b4e713e0

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

module Munge
  class System
    class Router
      class Itemish
        extend Forwardable

        def initialize(item, processor)
          @item = item
          @processor = processor
        end

        def compiled_content
          @compiled_content ||= @processor.transform(@item)
        end

        def_delegators :@item, :type, :relpath, :id, :frontmatter, :stat, :layout
        def_delegators :@item, :dirname, :filename, :basename, :extensions
        def_delegators :@item, :relpath?, :route?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
munge-0.18.0 lib/munge/system/router/itemish.rb