Sha256: c995a598e9b094a0be9f5cf54f6d3c077c61b8060327bf2bd842d23ed1549e17
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true module Expressir module Liquid module DataTypes class EnumerationDrop < ::Expressir::Liquid::DataTypeDrop def initialize(model) @model = model super end def extensible @model.extensible end def based_on drop_klass_by_model(@model.based_on) end def items return [] unless @model.items @model.items.map do |item| ::Expressir::Liquid::DataTypes::EnumerationItemDrop.new(item) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems