Skip to content

Commit

Permalink
look for Integer instead of Fixnum
Browse files Browse the repository at this point in the history
  • Loading branch information
TwP committed Jan 2, 2017
1 parent e458ce9 commit 1fec7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logging/appender.rb
Expand Up @@ -114,7 +114,7 @@ def <<( str )
#
# Set the level for this appender; log events below this level will be
# ignored by this appender. The level can be either a +String+, a
# +Symbol+, or a +Fixnum+. An +ArgumentError+ is raised if this is not
# +Symbol+, or an +Integer+. An +ArgumentError+ is raised if this is not
# the case.
#
# There are two special levels -- "all" and "off". The former will
Expand All @@ -138,7 +138,7 @@ def <<( str )
def level=( level )
lvl = case level
when String, Symbol; ::Logging::level_num(level)
when Fixnum; level
when Integer; level
when nil; 0
else
raise ArgumentError,
Expand Down

0 comments on commit 1fec7be

Please sign in to comment.