Class: Expressir::Liquid::Declarations::InterfacedItemDrop
- Inherits:
-
ModelElementDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::Declarations::InterfacedItemDrop
- Defined in:
- lib/expressir/liquid/declarations/interfaced_item_drop.rb
Instance Method Summary collapse
- #base_item ⇒ Object
- #id ⇒ Object
-
#initialize(model) ⇒ InterfacedItemDrop
constructor
A new instance of InterfacedItemDrop.
- #remark_items ⇒ Object
- #remarks ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ InterfacedItemDrop
Returns a new instance of InterfacedItemDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#base_item ⇒ Object
28 29 30 |
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 28 def base_item ::Expressir::Liquid::ModelElementDrop.new(@model.base_item) end |
#id ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 12 def id @model.id end |
#remark_items ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 20 def remark_items return [] unless @model.remark_items @model.remark_items.map do |item| ::Expressir::Liquid::Declarations::RemarkItemDrop.new(item) end end |
#remarks ⇒ Object
16 17 18 |
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 16 def remarks @model.remarks || [] end |