Skip to content

Commit

Permalink
Alias initialize_copy to replace
Browse files Browse the repository at this point in the history
Closes #178
  • Loading branch information
joeldrapper committed Dec 8, 2024
1 parent 3370350 commit 3780626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/literal/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def replace(value)
self
end

alias_method :initialize_copy, :replace

def rotate(...)
__with__(@__value__.rotate(...))
end
Expand Down

0 comments on commit 3780626

Please sign in to comment.