Class Map
In: lib/map.rb
lib/map/struct.rb
lib/map/integrations/active_record.rb
lib/map/options.rb
Parent: Hash

Methods

<=>   ==   =~   []   []=   _explode   add   add   add_conversion_method!   allocate   alphanumeric_key_for   alphanumeric_key_for   apply   blank?   blank?   breadth_first_each   breadth_first_each   clear   clone   coerce   collection_has?   collection_has?   collection_key   collection_key   collection_set   collection_set   combine   combine   combine!   contains   conversion_methods   conversion_methods   convert   convert_key   convert_key   convert_value   convert_value   copy   default   default=   define_conversion_method!   delete   delete_if   demongoize   depth_first_each   depth_first_each   depth_first_keys   depth_first_keys   depth_first_values   depth_first_values   deserialize   dup   each   each_key   each_pair   each_value   each_with_index   evolve   explode   extractable_options?   fetch   first   for   forcing   forcing?   from_hash   get   has?   id   initialize_from_array   initialize_from_hash   inspect   intersection   invert   keep_if   key?   key_for   key_for   keys   keys_for   klass   last   leaf_for   libdir   load   map_for   map_for   match   merge   method_missing   mongoize   new   new   options_for   options_for!   pairs_for   pop   push   reject   reject!   reorder   reorder!   replace   respond_to?   reverse_merge   reverse_merge!   rm   select   serialize   set   shift   stringify_keys   stringify_keys!   struct   struct   symbolize_keys   symbolize_keys!   to_array   to_hash   to_list   to_options   to_options!   to_s   to_yaml   unshift   update   update_options_for!   values   values_at   version   with_indifferent_access   with_indifferent_access!  

Classes and Modules

Module Map::Arguments
Module Map::Integrations
Module Map::Options
Class Map::Struct

Constants

Version = '6.2.0' unless defined?(Version)
Load = Kernel.method(:load) unless defined?(Load)
Dup = instance_method(:dup) unless defined?(Dup)

External Aliases

'new' -> '[]'
'convert_value' -> 'convert_val'
'[]=' -> '__set__'
  writer/reader methods
'[]' -> '__get__'
'update' -> '__update__'
'[]=' -> 'store'
'key?' -> 'include?'
'key?' -> 'has_key?'
'key?' -> 'member?'
'update' -> 'merge!'
'values' -> 'vals'
'each' -> 'each_pair'
'to_array' -> 'to_a'
'contains' -> 'contains?'

Public Class methods

TODO - technically this returns only leaves so the name isn‘t quite right. re-factor for 3.0

iterate over arguments in pairs smartly.

support for building ordered hasshes from a map‘s own image

Public Instance methods

equality / sorting / matching support

mutators

for rails’ extract_options! compat

support for compound key indexing and depth first iteration

instance constructor

support methods

a sane method missing that only supports writing values or reading *previously set* values

reordering support

for mongoid type system support

ordered container specific methods

oh rails - would that map.rb existed before all this non-sense…

[Validate]