Method: YARP::ClassVariableAndWriteNode#copy

Defined in:
lib/yarp/node.rb

#copy(**params) ⇒ Object

def copy: (**params) -> ClassVariableAndWriteNode



2179
2180
2181
2182
2183
2184
2185
2186
2187
# File 'lib/yarp/node.rb', line 2179

def copy(**params)
  ClassVariableAndWriteNode.new(
    params.fetch(:name) { name },
    params.fetch(:name_loc) { name_loc },
    params.fetch(:operator_loc) { operator_loc },
    params.fetch(:value) { value },
    params.fetch(:location) { location },
  )
end