lib/regexp_parser/expression/classes/root.rb in regexp_parser-0.4.6 vs lib/regexp_parser/expression/classes/root.rb in regexp_parser-0.4.7

- old
+ new

@@ -1,26 +1,12 @@ module Regexp::Expression class Root < Regexp::Expression::Subexpression - def initialize - super Regexp::Token.new(:expression, :root, '', 0) + def initialize(options = {}) + super(Regexp::Token.new(:expression, :root, '', 0), options) end - def multiline? - @expressions[0].m? - end - alias :m? :multiline? - - def case_insensitive? - @expressions[0].i? - end - alias :i? :case_insensitive? - alias :ignore_case? :case_insensitive? - - def free_spacing? - @expressions[0].x? - end - alias :x? :free_spacing? - alias :extended? :free_spacing? + alias ignore_case? case_insensitive? + alias extended? free_spacing? end end