class Validation::Rule::NotNil
Validates that a property is not nil
Public Instance Methods
error_key()
click to toggle source
The error key for this rule @return [Symbol] error key
# File lib/diaspora_federation/validators/rules/not_nil.rb, line 9 def error_key :not_nil end
params()
click to toggle source
This rule has no params. @return [Hash] params
# File lib/diaspora_federation/validators/rules/not_nil.rb, line 20 def params {} end
valid_value?(value)
click to toggle source
Determines if value is not nil
# File lib/diaspora_federation/validators/rules/not_nil.rb, line 14 def valid_value?(value) !value.nil? end