lib/oboe/api/util.rb in oboe-2.6.6.1 vs lib/oboe/api/util.rb in oboe-2.6.7.1
- old
+ new
@@ -54,11 +54,11 @@
#
# Returns a boolean on blacklisted state
def blacklisted?(addr_port)
return false unless Oboe::Config.blacklist
- # Ensure that the blacklist is an array
+ # Ensure that the blacklist is an array
unless Oboe::Config.blacklist.is_a?(Array)
val = Oboe::Config[:blacklist]
Oboe::Config[:blacklist] = [ val.to_s ]
end
@@ -66,11 +66,11 @@
return true if addr_port.to_s.match(h.to_s)
end
false
end
-
+
# Internal: Pretty print a list of arguments for reporting
#
# args - the list of arguments to work on
#
# Returns a pretty string representation of arguments
@@ -97,14 +97,14 @@
klass.class.to_s.rpartition('::').last
else
if klass.is_a?(Class) and klass.is_a?(Module)
# Class
kv["Class"] = klass.to_s
-
+
elsif (not klass.is_a?(Class) and not klass.is_a?(Module))
# Class instance
kv["Class"] = klass.class.to_s
-
+
else
# Module
kv["Module"] = klass.to_s
end
end