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
#current ⇒ Object
8 9 10 |
# File 'lib/ontology-united/stack.rb', line 8 def current stack[-1] end |
#parent ⇒ Object
12 13 14 |
# File 'lib/ontology-united/stack.rb', line 12 def parent stack[-2] end |
#stack ⇒ Object
4 5 6 |
# File 'lib/ontology-united/stack.rb', line 4 def stack @stack ||= [] end |