Class: Expressir::Liquid::RepositoryDrop
- Inherits:
-
ModelElementDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::RepositoryDrop
- Defined in:
- lib/expressir/liquid/repository_drop.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ RepositoryDrop
constructor
A new instance of RepositoryDrop.
- #schemas ⇒ Object
Methods inherited from ModelElementDrop
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
#schemas ⇒ Object
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 |