Sha256: e0b38df8ca664d7ecbd33ea114096b22932c05082b40375c1ab4e4dd82eebb04

Contents?: true

Size: 533 Bytes

Versions: 8

Compression:

Stored size: 533 Bytes

Contents

module Munge
  class System
    class Router
      class Itemish
        extend Forwardable

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

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

        def_delegators :@item, *%i(type relpath id frontmatter stat layout)
        def_delegators :@item, *%i(dirname filename basename extensions)
        def_delegators :@item, *%i(relpath? route?)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
munge-0.11.1 lib/munge/system/router/itemish.rb
munge-0.11.0 lib/munge/system/router/itemish.rb
munge-0.10.0 lib/munge/system/router/itemish.rb
munge-0.9.0 lib/munge/system/router/itemish.rb
munge-0.8.0 lib/munge/system/router/itemish.rb
munge-0.7.1 lib/munge/system/router/itemish.rb
munge-0.7.0 lib/munge/system/router/itemish.rb
munge-0.6.0 lib/munge/system/router/itemish.rb