Class: Validate::ValidationMethods::ArgumentFailureBlockScope

Inherits:
Object
  • Object
show all
Defined in:
lib/validate/validations/meta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, field, opts, validator) ⇒ ArgumentFailureBlockScope

Returns a new instance of ArgumentFailureBlockScope.



28
29
30
# File 'lib/validate/validations/meta.rb', line 28

def initialize(obj, field, opts, validator)
  @obj, @field, @opts, @validator = obj, field, opts, validator
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



31
32
33
# File 'lib/validate/validations/meta.rb', line 31

def field
  @field
end

#objObject (readonly)

Returns the value of attribute obj.



31
32
33
# File 'lib/validate/validations/meta.rb', line 31

def obj
  @obj
end

#optsObject (readonly)

Returns the value of attribute opts.



31
32
33
# File 'lib/validate/validations/meta.rb', line 31

def opts
  @opts
end

#validatorObject (readonly)

Returns the value of attribute validator.



31
32
33
# File 'lib/validate/validations/meta.rb', line 31

def validator
  @validator
end