Module: SimplyTestable::Errors::InstanceMethods

Defined in:
lib/simply_testable/errors.rb

Instance Method Summary collapse

Instance Method Details

#on_attr_and_type(attribute, type) ⇒ Object



6
7
8
9
10
# File 'lib/simply_testable/errors.rb', line 6

def on_attr_and_type(attribute,type)
	attribute = attribute.to_s
	return nil unless @errors.has_key?(attribute)
	@errors[attribute].collect(&:type).include?(type)
end