Class: Validate::Constraints::ValidationContext::None

Inherits:
Validate::Constraints::ValidationContext show all
Defined in:
lib/validate/constraints/validation_context.rb

Instance Attribute Summary

Attributes inherited from Validate::Constraints::ValidationContext

#value

Instance Method Summary collapse

Methods inherited from Validate::Constraints::ValidationContext

key, #merge, none, root, #to_err

Constructor Details

#initializeNone

Returns a new instance of None.



163
164
# File 'lib/validate/constraints/validation_context.rb', line 163

def initialize
end

Instance Method Details

#[](_) ⇒ Object



166
167
168
# File 'lib/validate/constraints/validation_context.rb', line 166

def [](_)
  self
end

#add_violation(_) ⇒ Object



174
175
176
# File 'lib/validate/constraints/validation_context.rb', line 174

def add_violation(_)
  self
end

#attr(_) ⇒ Object



170
171
172
# File 'lib/validate/constraints/validation_context.rb', line 170

def attr(_)
  self
end

#clear_violationsObject



178
179
180
# File 'lib/validate/constraints/validation_context.rb', line 178

def clear_violations
  self
end

#has_violations?Boolean

Returns:

  • (Boolean)


182
183
184
# File 'lib/validate/constraints/validation_context.rb', line 182

def has_violations?
  false
end