class RuboCop::AST::ArgNode

def default_value

Returns:
  • (Node, nil) - the default value of the argument
def default_value
  return unless default?
  node_parts[1]
end