mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Check for Integer not Fixnum (ruby 2.4)
This commit is contained in:
parent
1300ff1ab9
commit
b7685009bd
1 changed files with 2 additions and 1 deletions
|
@ -136,9 +136,10 @@ module Ago
|
|||
|
||||
# If the argument passed into ago() is a symbol, focus the ago statement
|
||||
# down to the level specified in the symbol
|
||||
puts focus.class.inspect
|
||||
if focus.class == Symbol
|
||||
break if u == focus || u == :second
|
||||
elsif focus.class == Fixnum
|
||||
elsif focus.class == Integer
|
||||
if focus == 0 || u == :second
|
||||
break
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue