Class: Hash

Inherits:
Object
  • Object
show all
Includes:
Validatable, Validatable::ClassMethods, Validatable::Macros
Defined in:
lib/hash_validations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validatable

included, #valid_for_group?, #validate_only

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object



81
82
83
# File 'lib/hash_validations.rb', line 81

def method_missing(method_name, *args)
  self[method_name]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



78
79
80
# File 'lib/hash_validations.rb', line 78

def name
  @name
end

#superclassObject

Returns the value of attribute superclass.



79
80
81
# File 'lib/hash_validations.rb', line 79

def superclass
  @superclass
end