lib/logging/logger.rb in logging-2.1.0 vs lib/logging/logger.rb in logging-2.2.0
- old
+ new
@@ -262,11 +262,11 @@
# call-seq:
# level = :all
#
# Set the level for this logger. 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
# enable log messages from this logger. The latter will disable all log
# messages from this logger.
@@ -292,10 +292,10 @@
@level =
if level.nil? then level
else
lvl = case level
when String, Symbol; ::Logging::level_num(level)
- when Fixnum; level
+ when Integer; level
else
raise ArgumentError,
"level must be a String, Symbol, or Integer"
end
if lvl.nil? or lvl < 0 or lvl > ::Logging::LEVELS.length