Module: Validatable::Understandable::ClassMethods

Defined in:
lib/gems/validatable-1.6.7/lib/understandable.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#all_understandingsObject



12
13
14
15
# File 'lib/gems/validatable-1.6.7/lib/understandable.rb', line 12

def all_understandings
  return understandings + self.superclass.all_understandings if self.superclass.respond_to? :all_understandings
  understandings
end

#understandingsObject



8
9
10
# File 'lib/gems/validatable-1.6.7/lib/understandable.rb', line 8

def understandings
  @understandings ||= []
end

#understands(*args) ⇒ Object



4
5
6
# File 'lib/gems/validatable-1.6.7/lib/understandable.rb', line 4

def understands(*args)
  understandings.concat args
end