Class: Expressir::Liquid::RepositoryDrop

Inherits:
ModelElementDrop show all
Defined in:
lib/expressir/liquid/repository_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ RepositoryDrop

Returns a new instance of RepositoryDrop.



8
9
10
11
# File 'lib/expressir/liquid/repository_drop.rb', line 8

def initialize(model)
  @model = model
  super
end

Instance Method Details

#schemasObject



13
14
15
16
17
18
19
# File 'lib/expressir/liquid/repository_drop.rb', line 13

def schemas
  return [] unless @model.schemas

  @model.schemas.map do |item|
    ::Expressir::Liquid::Declarations::SchemaDrop.new(item)
  end
end