Both the begin and the end of the Range must be Numeric, otherwise nil is returned.
# rng.size -> num# # Returns the number of elements in the range. Both the begin and the end of# the Range must be Numeric, otherwise nil is returned.# # (10..20).size #=> 11# ('a'..'z').size #=> nil# (-Float::INFINITY..Float::INFINITY).size #=> Infinitydefsize()#This is a stub, used for indexingend