class RuboCop::AST::RegexpNode
def to_regexp
-
(Regexp)
- a regexp of this node
def to_regexp option = regopt.children.map { |opt| OPTIONS[opt] }.inject(:|) Regexp.new(content, option) end
(Regexp)
- a regexp of this node
def to_regexp option = regopt.children.map { |opt| OPTIONS[opt] }.inject(:|) Regexp.new(content, option) end