Class: RubyAi::Search::Core::Stack
- Defined in:
- lib/ruby_ai/search/core/frontier.rb
Instance Attribute Summary
Attributes inherited from Frontier
Instance Method Summary collapse
Methods inherited from Frontier
#empty?, #include?, #initialize, #size
Constructor Details
This class inherits a constructor from RubyAi::Search::Core::Frontier
Instance Method Details
#append(element:) ⇒ Object
47 48 49 50 |
# File 'lib/ruby_ai/search/core/frontier.rb', line 47 def append(element:) @store.push(element) self end |
#pop ⇒ Object
52 53 54 |
# File 'lib/ruby_ai/search/core/frontier.rb', line 52 def pop @store.pop end |