class RedParse::ListInNode::MatchNode
Public Class Methods
new(left,op,right=nil)
click to toggle source
# File lib/redparse/node.rb, line 1427 def initialize(left,op,right=nil) op,right=nil,op unless right replace [left,right] end
Public Instance Methods
op()
click to toggle source
# File lib/redparse/node.rb, line 1441 def op; "=~"; end
parsetree(o)
click to toggle source
Calls superclass method
RedParse::ListInNode::OpNode#parsetree
# File lib/redparse/node.rb, line 1432 def parsetree(o) if StringNode===left and left.char=='/' [:match2, left.parsetree(o), right.parsetree(o)] elsif StringNode===right and right.char=='/' [:match3, right.parsetree(o), left.parsetree(o)] else super end end