Module: Sandals::FieldValidation
- Defined in:
- lib/sandals/view.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
293 294 295 |
# File 'lib/sandals/view.rb', line 293 def error @error end |
Instance Method Details
#error_id ⇒ Object
299 300 301 |
# File 'lib/sandals/view.rb', line 299 def error_id "#{id}-error" end |
#invalid? ⇒ Boolean
295 296 297 |
# File 'lib/sandals/view.rb', line 295 def invalid? !error.nil? end |