Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/agents/sets/enum/by.rb,
lib/agents/sets/enum/by.rb,
lib/agents/sets/enum/tree.rb
Instance Method Summary collapse
- #at_random ⇒ Object
- #by(next_spec = nil, *args, &next_proc) ⇒ Object
- #by_breadth(child_spec = nil, *args, &child_proc) ⇒ Object
- #by_depth(child_spec = nil, *args, &child_proc) ⇒ Object
Instance Method Details
#at_random ⇒ Object
188 189 190 |
# File 'lib/agents/sets/enum/by.rb', line 188 def at_random nil end |
#by(next_spec = nil, *args, &next_proc) ⇒ Object
61 62 63 |
# File 'lib/agents/sets/enum/by.rb', line 61 def by next_spec = nil, *args, &next_proc Enumerable::LinkedListDelegator.new self, next_spec, *args, &next_proc end |
#by_breadth(child_spec = nil, *args, &child_proc) ⇒ Object
160 161 162 |
# File 'lib/agents/sets/enum/tree.rb', line 160 def by_breadth child_spec = nil, *args, &child_proc Enumerable::ByBreadthDelegator.new self, child_spec, *args, &child_proc end |
#by_depth(child_spec = nil, *args, &child_proc) ⇒ Object
157 158 159 |
# File 'lib/agents/sets/enum/tree.rb', line 157 def by_depth child_spec = nil, *args, &child_proc Enumerable::ByDepthDelegator.new self, child_spec, *args, &child_proc end |