diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-12-16 07:42:17 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-12-16 07:42:17 -0800 |
commit | 899e8428c50c586e6c8d4884b542ac9fdf01e95f (patch) | |
tree | cea78b06495af32c84f7fa34f4cc104b6cb3c1bf /lib/arel/nodes/regexp.rb | |
parent | 3c429c5d86e9e2201c2a35d934ca6a8911c18e69 (diff) | |
parent | 725cf0502eb279c728bd93320cc5e22134228ff1 (diff) | |
download | rails-899e8428c50c586e6c8d4884b542ac9fdf01e95f.tar.gz rails-899e8428c50c586e6c8d4884b542ac9fdf01e95f.tar.bz2 rails-899e8428c50c586e6c8d4884b542ac9fdf01e95f.zip |
Merge pull request #403 from kbrock/regexp
Case insensitivite match/regular expressions
Diffstat (limited to 'lib/arel/nodes/regexp.rb')
-rw-r--r-- | lib/arel/nodes/regexp.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/arel/nodes/regexp.rb b/lib/arel/nodes/regexp.rb new file mode 100644 index 0000000000..784368f5bf --- /dev/null +++ b/lib/arel/nodes/regexp.rb @@ -0,0 +1,14 @@ +module Arel + module Nodes + class Regexp < Binary + attr_accessor :case_sensitive + + def initialize(left, right, case_sensitive = true) + super(left, right) + @case_sensitive = case_sensitive + end + end + + class NotRegexp < Regexp; end + end +end |