OR-rable concern
12 13 14 15 16 17 18 19 20
# File 'lib/mihari/schemas/concerns/orrable.rb', line 12 def compose_by_or schemas = constants.map { |sym| const_get sym } return schemas.first if schemas.length <= 1 base, *others = schemas others.each { |other| base = base.or(other) } base end