Method: Uinit::Type::Composition#is?
- Defined in:
- lib/uinit/type/composition.rb
#is?(value) ⇒ Boolean
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/uinit/type/composition.rb', line 34 def is?(value) is = operand.is?(value) compositions.each do |operator, operand| break if is && operator == UNION next if !is && operator == INTERSECTION is = operand.is?(value) end is end |