Class: Validatable::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/hash_validations.rb

Instance Method Summary collapse

Instance Method Details

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/hash_validations.rb', line 60

def has_key?(key)
  @errors.has_key?(key)
end

#humanize(lower_case_and_underscored_word) ⇒ Object

:nodoc:



64
65
66
# File 'lib/hash_validations.rb', line 64

def humanize(lower_case_and_underscored_word) #:nodoc:
  ":#{lower_case_and_underscored_word}"
end