Module: Proteus::Validators::ValidationHelpers

Included in:
BaseValidator
Defined in:
lib/proteus/validators/validation_helpers.rb

Instance Method Summary collapse

Instance Method Details

#keys_to_hierarchy(*keys) ⇒ Object



4
5
6
# File 'lib/proteus/validators/validation_helpers.rb', line 4

def keys_to_hierarchy(*keys)
  keys.inject() { |hierarchy, key| "#{hierarchy} => #{key}" }
end