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