Class: Validatable::IncludedValidation
- Defined in:
- lib/validatable/included_validation.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(attribute) ⇒ IncludedValidation
constructor
A new instance of IncludedValidation.
Constructor Details
#initialize(attribute) ⇒ IncludedValidation
Returns a new instance of IncludedValidation.
5 6 7 |
# File 'lib/validatable/included_validation.rb', line 5 def initialize(attribute) @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/validatable/included_validation.rb', line 3 def attribute @attribute end |