Class: Validatable::IncludedValidation

Inherits:
Object
  • Object
show all
Defined in:
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/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/included_validation.rb', line 3

def attribute
  @attribute
end