Class: ValidateableArrayValue

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/validates_serialized/validateable_array_value.rb

Instance Method Summary collapse

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

#valueObject



10
11
12
# File 'lib/validates_serialized/validateable_array_value.rb', line 10

def value
  @value
end