Module: OntologyUnited::Stack

Included in:
DSL::BaseDSL, OntologyUnited::Serializer::SerializerBase
Defined in:
lib/ontology-united/stack.rb

Defined Under Namespace

Modules: Delegate

Instance Method Summary collapse

Instance Method Details

#currentObject



8
9
10
# File 'lib/ontology-united/stack.rb', line 8

def current
  stack[-1]
end

#parentObject



12
13
14
# File 'lib/ontology-united/stack.rb', line 12

def parent
  stack[-2]
end

#stackObject



4
5
6
# File 'lib/ontology-united/stack.rb', line 4

def stack
  @stack ||= []
end