-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I pulled down #set to GenericSpreedSheet #1
Conversation
def set_type(row,col,type,sheet=nil) | ||
sheet = @default_value unless sheet | ||
key = "#{row},#{col}" | ||
@cell_type[sheet][[key]] = type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this extra [] around key is a bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
Thanks for the pull request. It's good to have help for cleaning up this library. :-) |
@Empact, I added the deprecation warning you suggested and restore the original behavior for 'sheet' argument at #set, #set_value and #set_type. Do you think I also add a commit, for testing that behavior you mentioned for GenericSpreadsheet#set, where a nil value for the 'sheet' argument should be overridden by a default value even when an explicit nil is passed? |
get up-to-date with latest files
I moved #set, #set_value and #set_type from Excelx, Openoffice and Excel2003XML to GenericSpreedSheet, since they were identical at each subclass.