Sha256: 9d7e7bc5905dc633dc11bdeb940ffd7255894a0bb514363e48c3a9c06dc471ea
Contents?: true
Size: 703 Bytes
Versions: 7
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true module Expressir module Liquid module Declarations class InterfacedItemDrop < ::Expressir::Liquid::ModelElementDrop def initialize(model) @model = model super 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::Declarations::RemarkItemDrop.new(item) end end def base_item ::Expressir::Liquid::ModelElementDrop.new(@model.base_item) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems