Class: Validatable::IncludedValidation

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/validatable-1.6.7/lib/included_validation.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute) ⇒ IncludedValidation

Returns a new instance of IncludedValidation.



5
6
7
# File 'lib/gems/validatable-1.6.7/lib/included_validation.rb', line 5

def initialize(attribute)
  @attribute = attribute
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



3
4
5
# File 'lib/gems/validatable-1.6.7/lib/included_validation.rb', line 3

def attribute
  @attribute
end