diff options
Diffstat (limited to 'spec/ruby/language/fixtures/match_operators.rb')
-rw-r--r-- | spec/ruby/language/fixtures/match_operators.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/language/fixtures/match_operators.rb b/spec/ruby/language/fixtures/match_operators.rb new file mode 100644 index 0000000000..f04c54d723 --- /dev/null +++ b/spec/ruby/language/fixtures/match_operators.rb @@ -0,0 +1,9 @@ +class OperatorImplementor + def =~(val) + return val + end + + def !~(val) + return val + end +end |