Method: YARP::ArrayPatternNode#copy
- Defined in:
- lib/yarp/node.rb
#copy(**params) ⇒ Object
def copy: (**params) -> ArrayPatternNode
411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/yarp/node.rb', line 411 def copy(**params) ArrayPatternNode.new( params.fetch(:constant) { constant }, params.fetch(:requireds) { requireds }, params.fetch(:rest) { rest }, params.fetch(:posts) { posts }, params.fetch(:opening_loc) { opening_loc }, params.fetch(:closing_loc) { closing_loc }, params.fetch(:location) { location }, ) end |