Class: Expressir::Liquid::DataTypes::SelectDrop

Inherits:
Expressir::Liquid::DataTypeDrop show all
Defined in:
lib/expressir/liquid/data_types/select_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ SelectDrop

Returns a new instance of SelectDrop.



7
8
9
10
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 7

def initialize(model)
  @model = model
  super
end

Instance Method Details

#based_onObject



20
21
22
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 20

def based_on
  drop_klass_by_model(@model.based_on)
end

#extensibleObject



12
13
14
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 12

def extensible
  @model.extensible
end

#generic_entityObject



16
17
18
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 16

def generic_entity
  @model.generic_entity
end

#itemsObject



24
25
26
27
28
29
30
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 24

def items
  return [] unless @model.items

  @model.items.map do |item|
    drop_klass_by_model(item)
  end
end