Class: Red::CallNode::MatchNode::ReverseNode

Inherits:
Red::CallNode::MatchNode show all
Defined in:
lib/red/call_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Red::CallNode::MatchNode

#compile_node

Constructor Details

#initialize(expression, regex) ⇒ ReverseNode

Returns a new instance of ReverseNode.



34
35
36
# File 'lib/red/call_nodes.rb', line 34

def initialize(expression, regex)
  @regex, @expression = [regex, expression].build_nodes
end