Class: Croesus::Validations::Optional
- Defined in:
- lib/croesus/validations/optional.rb
Instance Attribute Summary collapse
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
Instance Method Summary collapse
-
#initialize(validation) ⇒ Optional
constructor
A new instance of Optional.
Constructor Details
#initialize(validation) ⇒ Optional
Returns a new instance of Optional.
23 24 25 |
# File 'lib/croesus/validations/optional.rb', line 23 def initialize(validation) @validation = validation end |
Instance Attribute Details
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
22 23 24 |
# File 'lib/croesus/validations/optional.rb', line 22 def validation @validation end |