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, selected_schemas: nil, options: {}) ⇒ RepositoryDrop
constructor
rubocop:disable Lint/MissingSuper.
- #schemas ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model, selected_schemas: nil, options: {}) ⇒ RepositoryDrop
rubocop:disable Lint/MissingSuper
8 9 10 11 12 13 |
# File 'lib/expressir/liquid/repository_drop.rb', line 8 def initialize(model, selected_schemas: nil, options: {}) # rubocop:disable Lint/MissingSuper @model = model @selected_schemas = selected_schemas @options = super(model) end |
Instance Method Details
#schemas ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/expressir/liquid/repository_drop.rb', line 15 def schemas return [] unless @model.schemas @model.schemas.map do |item| ::Expressir::Liquid::Declarations::SchemaDrop.new( item, selected_schemas: @selected_schemas, options: @options, ) end end |