Class: Expressir::Liquid::Declarations::RemarkItemDrop
- Inherits:
-
Expressir::Liquid::DeclarationDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::DeclarationDrop
- Expressir::Liquid::Declarations::RemarkItemDrop
- Defined in:
- lib/expressir/liquid/declarations/remark_item_drop.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(model) ⇒ RemarkItemDrop
constructor
A new instance of RemarkItemDrop.
- #remarks ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ RemarkItemDrop
Returns a new instance of RemarkItemDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/declarations/remark_item_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#id ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/declarations/remark_item_drop.rb', line 12 def id @model.id end |
#remarks ⇒ Object
16 17 18 |
# File 'lib/expressir/liquid/declarations/remark_item_drop.rb', line 16 def remarks @model.remarks || [] end |