weshatheleopard / rubyXL

Ruby lib for reading/writing/modifying .xlsx and .xlsm files
MIT License
1.28k stars 255 forks source link

How does method clone work? #306

Closed slim1979 closed 6 years ago

slim1979 commented 6 years ago

the worksheet has a clone method. how does it work? I tried to do something like workbook[0].clone in my console, but worksheets count isnt increase.

weshatheleopard commented 6 years ago

https://ruby-doc.org/core-2.5.0/Object.html#method-i-clone