Class: Expressir::Liquid::Declarations::InterfaceDrop

Inherits:
Expressir::Liquid::DeclarationDrop show all
Defined in:
lib/expressir/liquid/declarations/interface_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

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

#itemsObject



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

#kindObject



12
13
14
# File 'lib/expressir/liquid/declarations/interface_drop.rb', line 12

def kind
  @model.kind
end

#schemaObject



16
17
18
# File 'lib/expressir/liquid/declarations/interface_drop.rb', line 16

def schema
  drop_klass_by_model(@model.schema)
end