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.
315 316 317 |
# File 'lib/sandals/view.rb', line 315 def error @error end |
Instance Method Details
#error_id ⇒ Object
321 322 323 |
# File 'lib/sandals/view.rb', line 321 def error_id "#{id}-error" end |
#invalid? ⇒ Boolean
317 318 319 |
# File 'lib/sandals/view.rb', line 317 def invalid? !error.nil? end |