Module: OntologyUnited::DSL::VariableStore::Helper

Included in:
Ontology, OntologyEntityBase
Defined in:
lib/ontology-united/dsl/variable_store.rb

Instance Method Summary collapse

Instance Method Details

#as(name) ⇒ Object



8
9
10
11
12
# File 'lib/ontology-united/dsl/variable_store.rb', line 8

def as(name)
  fail ParentIsNilError, 'Can\'t define variable on nil' unless parent
  parent.declare(self, as: name.to_sym)
  self
end