Class: Expressir::Liquid::Declarations::SchemaVersionDrop
- Inherits:
-
ModelElementDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::Declarations::SchemaVersionDrop
- Defined in:
- lib/expressir/liquid/declarations/schema_version_drop.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ SchemaVersionDrop
constructor
A new instance of SchemaVersionDrop.
- #items ⇒ Object
- #value ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ SchemaVersionDrop
Returns a new instance of SchemaVersionDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/declarations/schema_version_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#items ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/expressir/liquid/declarations/schema_version_drop.rb', line 16 def items return [] unless @model.items @model.items.map do |item| ::Expressir::Liquid::Declarations::SchemaVersionItemDrop.new(item) end end |
#value ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/declarations/schema_version_drop.rb', line 12 def value @model.value end |