Skip to content

Commit

Permalink
Remove the Fixnum#blank? monkeypatch
Browse files Browse the repository at this point in the history
It doesn't seems to affect anything, since the tests are resulting in
the same results and the output of the examples is the same
  • Loading branch information
nkotsev committed Mar 8, 2017
1 parent c43cc00 commit 6f99914
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/ruby-nessus/core_ext/helpers.rb
@@ -1,18 +1,5 @@
class Fixnum

# Return false if the integer does NOT equal zero
# @return [Boolean]
# Return true is count does NOT equal zero
# @example
# host.event_count.blank? #=> false
def blank?
if (self.zero?)
return true
else
return false
end
end

# Return a severity integer in words.
# @return [String]
# Return a severity integer in words.
Expand Down

0 comments on commit 6f99914

Please sign in to comment.