Check for Integer not Fixnum (ruby 2.4)

This commit is contained in:
Kyle Drake 2017-04-02 13:58:32 -07:00
parent 1300ff1ab9
commit b7685009bd

View file

@ -136,9 +136,10 @@ module Ago
# If the argument passed into ago() is a symbol, focus the ago statement # If the argument passed into ago() is a symbol, focus the ago statement
# down to the level specified in the symbol # down to the level specified in the symbol
puts focus.class.inspect
if focus.class == Symbol if focus.class == Symbol
break if u == focus || u == :second break if u == focus || u == :second
elsif focus.class == Fixnum elsif focus.class == Integer
if focus == 0 || u == :second if focus == 0 || u == :second
break break
else else