Class: Validate::Constraints::ValidationContext::AttrPath
- Inherits:
-
Object
- Object
- Validate::Constraints::ValidationContext::AttrPath
- Defined in:
- lib/validate/constraints/validation_context.rb
Instance Method Summary collapse
-
#initialize(attr) ⇒ AttrPath
constructor
A new instance of AttrPath.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(attr) ⇒ AttrPath
Returns a new instance of AttrPath.
149 150 151 |
# File 'lib/validate/constraints/validation_context.rb', line 149 def initialize(attr) @attr = attr end |
Instance Method Details
#inspect ⇒ Object
157 158 159 |
# File 'lib/validate/constraints/validation_context.rb', line 157 def inspect "#<#{self.class.name} #{@attr.inspect}>" end |
#to_s ⇒ Object
153 154 155 |
# File 'lib/validate/constraints/validation_context.rb', line 153 def to_s ".#{@attr}" end |