Class: Hatch::ValidAttribute

Inherits:
ValidatedAttribute show all
Defined in:
lib/hatch.rb

Instance Attribute Summary

Attributes inherited from ValidatedAttribute

#attribute, #error, #value

Instance Method Summary collapse

Methods inherited from ValidatedAttribute

#initialize, validate

Constructor Details

This class inherits a constructor from Hatch::ValidatedAttribute

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


126
127
128
# File 'lib/hatch.rb', line 126

def invalid?
  false
end

#valid?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/hatch.rb', line 122

def valid?
  true
end