Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Includes:
- Validatable, Validatable::ClassMethods, Validatable::Macros
- Defined in:
- lib/hash_validations.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#superclass ⇒ Object
Returns the value of attribute superclass.
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
#name ⇒ Object
Returns the value of attribute name.
78 79 80 |
# File 'lib/hash_validations.rb', line 78 def name @name end |
#superclass ⇒ Object
Returns the value of attribute superclass.
79 80 81 |
# File 'lib/hash_validations.rb', line 79 def superclass @superclass end |