Sha256: 0e88bfc96a56652deb48c6a641bd14203a86a5f9825fac1325f0316af295af0e
Contents?: true
Size: 649 Bytes
Versions: 14
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true module Expressir module Liquid module Statements class CaseDrop < ::Expressir::Liquid::StatementDrop def initialize(model) @model = model super end def expression drop_klass_by_model(@model.expression) end def actions return [] unless @model.actions @model.actions.map do |item| ::Expressir::Liquid::CaseActionDrop.new(item) end end def otherwise_statement ::Expressir::Liquid::StatementDrop.new(@model.otherwise_statement) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems