Class: RMTools::ValueTraversable
- Includes:
- ValueTraversal
- Defined in:
- lib/rmtools/enumerable/traversal.rb
Instance Method Summary collapse
Methods included from ValueTraversal
#depth_first_find, #depth_first_map, #depth_first_select, #depth_first_traverse, #preorder_find, #preorder_select, #preorder_traverse
Methods inherited from Array
#===, #>>, add_iterator_name, #arrange, #arrange_by, #as_box, #avg, #avg_by, #casecmp, #del_all_where, #del_where, #div, #div!, #each_two, #evens, #every?, fallback_to_clean_iterators!, #fetch_opts, #find_by, #group_by, #index_where, #indices_map, #indices_where, #map_with_index, method_defined?, #no?, object_method_defined?, #odds, #partition, #partition_by, #present, #rand, rand, #rand!, #rand_by, #randdiv, #randdiv!, #reject_by, #rfind, #rfind_by, #runiq, #runiq_by, #scale, #select_by, #set_all_where, #set_where, simple_inplace_singularize!, #sort_along_by, #sorted_uniq_by, #stranspose, #sum, #throw_no, #turn_ccw, #turn_cw, #uniq?, use_active_support_singularize!, #valid_types
Methods included from SmarterSetOps
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Array
Instance Method Details
#+(enum) ⇒ Object
134 135 136 137 138 139 |
# File 'lib/rmtools/enumerable/traversal.rb', line 134 def +(enum) if Hash === enum enum = enum.values end array_plus enum.to_traversable end |
#to_traversable ⇒ Object
141 142 143 |
# File 'lib/rmtools/enumerable/traversal.rb', line 141 def to_traversable self end |