module OntologyUnited::DSL::VariableStore::Helper

Public Instance Methods

as(name) click to toggle source
# 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