Sha256: 2e18252ef501406068081198ff20a34b4560623352220be286ae6d63a81fc5ab

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

require_relative "declarations/remark_item_drop"

module Expressir
  module Liquid
    module IdentifierDrop
      def initialize_identifier(model, options = {})
        @model = model
        @options = options
      end

      def id
        @model.id
      end

      def remarks
        @model.remarks || []
      end

      def remark_items
        return [] unless @model.remark_items

        @model.remark_items.map do |item|
          ::Expressir::Liquid::RemarkItemDrop.new(item)
        end
      end

      def source
        @model.source
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expressir-2.1.5 lib/expressir/liquid/identifier_drop.rb