Class: Expressir::Model::Repository

Inherits:
ModelElement show all
Defined in:
lib/expressir/model/repository.rb

Overview

Multi-schema global scope

Instance Attribute Summary

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

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.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



9
10
11
12
13
# File 'lib/expressir/model/repository.rb', line 9

def initialize(options = {})
  @schemas = options[:schemas] || []

  super
end

Instance Method Details

#childrenArray<Declaration>

Returns:



16
17
18
19
20
# File 'lib/expressir/model/repository.rb', line 16

def children
  [
    *schemas,
  ]
end