Class: Expressir::Model::Repository
- Inherits:
-
ModelElement
- Object
- ModelElement
- Expressir::Model::Repository
- Defined in:
- lib/expressir/model/repository.rb
Overview
Multi-schema global scope
Instance Attribute Summary
Attributes inherited from ModelElement
Instance Method Summary collapse
- #children ⇒ Array<Declaration>
-
#initialize(options = {}) ⇒ Repository
constructor
A new instance of Repository.
Methods inherited from ModelElement
#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ Repository
Returns a new instance of Repository.
9 10 11 12 13 |
# File 'lib/expressir/model/repository.rb', line 9 def initialize( = {}) @schemas = [:schemas] || [] super end |
Instance Method Details
#children ⇒ Array<Declaration>
16 17 18 19 20 |
# File 'lib/expressir/model/repository.rb', line 16 def children [ *schemas ] end |