Class: ValidateableArrayValue
- Inherits:
-
Object
- Object
- ValidateableArrayValue
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/validates_serialized/validateable_array_value.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ ValidateableArrayValue
constructor
A new instance of ValidateableArrayValue.
- #method_missing(sym, *args, &block) ⇒ Object
- #value ⇒ Object
Methods included from ActiveModel::Validations
#validates_array_values_with, #validates_hash_values_with, #validates_serialized_with!
Constructor Details
#initialize(value) ⇒ ValidateableArrayValue
Returns a new instance of ValidateableArrayValue.
6 7 8 |
# File 'lib/validates_serialized/validateable_array_value.rb', line 6 def initialize(value) @value = value end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
14 15 16 |
# File 'lib/validates_serialized/validateable_array_value.rb', line 14 def method_missing(sym, *args, &block) @value.send sym, *args, &block end |
Instance Method Details
#value ⇒ Object
10 11 12 |
# File 'lib/validates_serialized/validateable_array_value.rb', line 10 def value @value end |