Module: Dry::Types::Composition::Constrained

Defined in:
lib/dry/types/composition.rb

Instance Method Summary collapse

Instance Method Details

#constrained?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/dry/types/composition.rb', line 28

def constrained?
  true
end

#ruleObject



24
25
26
# File 'lib/dry/types/composition.rb', line 24

def rule
  left.rule.public_send(self.class.operator, right.rule)
end