Class: L42::Map
- Inherits:
-
Object
- Object
- L42::Map
- Includes:
- Api, EnumerableApi
- Defined in:
- lib/l42/map.rb,
lib/l42/map/api.rb,
lib/l42/map/version.rb,
lib/l42/map/enumerable_api.rb
Defined Under Namespace
Modules: Api, EnumerableApi
Constant Summary collapse
- RestrictedNames =
%i[ empty? fetch merge slice to_h with_default without ].freeze
- VERSION =
'0.1.0'
Instance Method Summary collapse
Methods included from EnumerableApi
Methods included from Api
#[], #empty?, #fetch, #merge, #slice, #to_h, #without
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/l42/map.rb', line 14 def ==(other) self.class == other.class && hash == other.to_h end |
#with_default(default) ⇒ Object
18 19 20 21 22 |
# File 'lib/l42/map.rb', line 18 def with_default(default) @default = default _define_method_missing self end |