From 9ad419d8b33573171a089a1b6ccaf4669c5bde82 Mon Sep 17 00:00:00 2001 From: gorn <jAkubTcz> Date: Fri, 19 Jul 2019 12:17:15 +0200 Subject: [PATCH] #44: correcting mispelled method name (lenght=>length) --- lib/rspreadsheet/xml_tied_array.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rspreadsheet/xml_tied_array.rb b/lib/rspreadsheet/xml_tied_array.rb index ba53852..c26bb61 100644 --- a/lib/rspreadsheet/xml_tied_array.rb +++ b/lib/rspreadsheet/xml_tied_array.rb @@ -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