class Crispr::Mutations::Numeric
def replace(node, new_value)
-
(Parser::AST::Node)
- the mutated node
Parameters:
-
new_value
(Integer
) -- the new integer value -
node
(Parser::AST::Node
) -- the original node
def replace(node, new_value) Parser::AST::Node.new(:int, [new_value], location: node.location) end