Method: ParamsReady::Helpers::KeyMap::Mapping#=~
- Defined in:
- lib/params_ready/helpers/key_map.rb
#=~(other) ⇒ Object
115 116 117 118 119 120 121 |
# File 'lib/params_ready/helpers/key_map.rb', line 115 def =~(other) raise ParamsReadyError, "Can't match path with #{other.class.name}" unless other.is_a? Mapping return false unless path(:alt) =~ other.path(:alt) return false unless path(:std) =~ other.path(:std) true end |