Sha256: 69fd5acf3b7b1916fe3d719bdcaca3a0f28356d02e3509601430798f2a4945a5

Contents?: true

Size: 587 Bytes

Versions: 48

Compression:

Stored size: 587 Bytes

Contents

require 'middleman-core/core_extensions/collections/lazy_step'

module Middleman
  module CoreExtensions
    module Collections
      class LazyCollectorRoot < BasicObject
        def initialize(parent)
          @data = nil
          @parent = parent
        end

        def realize!(data)
          @data = data
        end

        def value(_ctx=nil)
          @data
        end

        def leaves
          @parent.leaves
        end

        def method_missing(name, *args, &block)
          LazyCollectorStep.new(name, args, block, self)
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
middleman-core-4.5.1 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.5.0 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.4.3 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.4.2 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.4.0 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.11 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.10 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.8 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.7 lib/middleman-core/core_extensions/collections/lazy_root.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.6 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.5 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.4 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.3 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.2 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.1 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.0 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-with-external-sources-watch-fix-4.1.10 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-with-external-sources-watch-fix-4.1.0 lib/middleman-core/core_extensions/collections/lazy_root.rb
middleman-core-4.3.0.rc.1 lib/middleman-core/core_extensions/collections/lazy_root.rb