Class: RubyAi::Search::Core::Queue
- 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
35 36 37 38 |
# File 'lib/ruby_ai/search/core/frontier.rb', line 35 def append(element:) @store.unshift(element) self end |
#pop ⇒ Object
40 41 42 |
# File 'lib/ruby_ai/search/core/frontier.rb', line 40 def pop @store.pop end |