Class: Expressir::Liquid::DataTypes::SelectDrop
- Inherits:
-
Expressir::Liquid::DataTypeDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::DataTypeDrop
- Expressir::Liquid::DataTypes::SelectDrop
- Defined in:
- lib/expressir/liquid/data_types/select_drop.rb
Instance Method Summary collapse
- #based_on ⇒ Object
- #extensible ⇒ Object
- #generic_entity ⇒ Object
-
#initialize(model) ⇒ SelectDrop
constructor
A new instance of SelectDrop.
- #items ⇒ Object
Methods inherited from ModelElementDrop
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_on ⇒ Object
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 |
#extensible ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 12 def extensible @model.extensible end |
#generic_entity ⇒ Object
16 17 18 |
# File 'lib/expressir/liquid/data_types/select_drop.rb', line 16 def generic_entity @model.generic_entity end |
#items ⇒ Object
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 |