Sha256: cd0d0b2018d9da257109045c749356c5236cdabd3b12ce63dd3910b3868f6daf

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  module Drops
    class CollectionDrop < Drop
      extend Forwardable

      mutable false

      def_delegator  :@obj, :write?, :output
      def_delegators :@obj, :label, :docs, :files, :directory, :relative_directory

      private def_delegator :@obj, :metadata, :fallback_data

      def to_s
        docs.to_s
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bridgetown-core-0.8.1 lib/bridgetown-core/drops/collection_drop.rb
bridgetown-core-0.8.0 lib/bridgetown-core/drops/collection_drop.rb
bridgetown-core-0.7.2 lib/bridgetown-core/drops/collection_drop.rb
bridgetown-core-0.7.1 lib/bridgetown-core/drops/collection_drop.rb