Class: Dry::Schema::Macros::Optional Private
- Defined in:
- lib/dry/schema/macros/optional.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A Key specialization used for keys that can be skipped
Instance Method Summary collapse
- #operation ⇒ Object private
- #to_rule ⇒ Object private
Instance Method Details
#operation ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/dry/schema/macros/optional.rb', line 11 def operation :then end |
#to_rule ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/dry/schema/macros/optional.rb', line 16 def to_rule super unless trace.captures.empty? end |