Module: Validatable::Understandable::ClassMethods
- Defined in:
- lib/validatable/understandable.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#all_understandings ⇒ Object
12 13 14 15 |
# File 'lib/validatable/understandable.rb', line 12 def all_understandings return understandings + self.superclass.all_understandings if self.superclass.respond_to? :all_understandings understandings end |
#understandings ⇒ Object
8 9 10 |
# File 'lib/validatable/understandable.rb', line 8 def understandings @understandings ||= [] end |
#understands(*args) ⇒ Object
4 5 6 |
# File 'lib/validatable/understandable.rb', line 4 def understands(*args) understandings.concat args end |