Sha256: 96b7118ad5744f971f50e0bf1b9556ccd20452944ff1c6fcf675355e2c5dbea6
Contents?: true
Size: 337 Bytes
Versions: 8
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true require_relative "binary_operator" class MatchOperator include BinaryOperator def binary(evaluator, lhs, rhs) text = evaluator.string_convert(lhs) unless text.nil? pattern = evaluator.string_convert(rhs) unless pattern.nil? text.match(pattern) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems