Module: Chronicle::Schema::Validation
- Defined in:
- lib/chronicle/schema/validation.rb,
lib/chronicle/schema/validation/validator.rb,
lib/chronicle/schema/validation/generation.rb,
lib/chronicle/schema/validation/base_contract.rb,
lib/chronicle/schema/validation/edge_validator.rb,
lib/chronicle/schema/validation/contract_factory.rb
Defined Under Namespace
Modules: Generation
Classes: BaseContract, ContractFactory, EdgeValidator, Validator
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.contracts ⇒ Object
Returns the value of attribute contracts.
12
13
14
|
# File 'lib/chronicle/schema/validation.rb', line 12
def contracts
@contracts
end
|
.graph ⇒ Object
Returns the value of attribute graph.
12
13
14
|
# File 'lib/chronicle/schema/validation.rb', line 12
def graph
@graph
end
|
Class Method Details
.contracts_generated? ⇒ Boolean
30
31
32
|
# File 'lib/chronicle/schema/validation.rb', line 30
def self.contracts_generated?
!@contracts_generated.nil?
end
|
.get_contract(name) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/chronicle/schema/validation.rb', line 23
def self.get_contract(name)
@contracts[name]
end
|
.set_contract(name, contract) ⇒ Object
19
20
21
|
# File 'lib/chronicle/schema/validation.rb', line 19
def self.set_contract(name, contract)
@contracts[name] = contract
end
|
.unload_contracts ⇒ Object
15
16
17
|
# File 'lib/chronicle/schema/validation.rb', line 15
def self.unload_contracts
@contracts = {}
end
|