Skip to content

Commit

Permalink
#44: correcting mispelled method name (lenght=>length)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorn authored and gorn committed Jul 19, 2019
1 parent 0b97962 commit 9ad419d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rspreadsheet/xml_tied_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def subitems_array

# Number of subitems
def size; first_unused_subitem_index-1 end
alias :lenght :size
alias :length :size
alias :lenght :size # common misspelling (deprecated: may be removed in future)

# Finds first unused subitem index
def first_unused_subitem_index
Expand Down

0 comments on commit 9ad419d

Please sign in to comment.