Class: Validate::ValidationMethods::ArgumentFailureBlockScope
- Inherits:
-
Object
- Object
- Validate::ValidationMethods::ArgumentFailureBlockScope
- Defined in:
- lib/validate/validations/meta.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#validator ⇒ Object
readonly
Returns the value of attribute validator.
Instance Method Summary collapse
-
#initialize(obj, field, opts, validator) ⇒ ArgumentFailureBlockScope
constructor
A new instance of ArgumentFailureBlockScope.
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
31 32 33 |
# File 'lib/validate/validations/meta.rb', line 31 def field @field end |
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
31 32 33 |
# File 'lib/validate/validations/meta.rb', line 31 def obj @obj end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
31 32 33 |
# File 'lib/validate/validations/meta.rb', line 31 def opts @opts end |
#validator ⇒ Object (readonly)
Returns the value of attribute validator.
31 32 33 |
# File 'lib/validate/validations/meta.rb', line 31 def validator @validator end |