Skip to content

Commit

Permalink
Merge pull request #54 from gmcgibbon/use_if_not_iff
Browse files Browse the repository at this point in the history
Replace "iff" with "if and only if"
  • Loading branch information
hsbt authored Jan 20, 2021
2 parents 7e30ea3 + 4fa0c28 commit bf6d5aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -302,35 +302,35 @@ def datetime_format
alias sev_threshold level
alias sev_threshold= level=

# Returns +true+ iff the current severity level allows for the printing of
# Returns +true+ if and only if the current severity level allows for the printing of
# +DEBUG+ messages.
def debug?; level <= DEBUG; end

# Sets the severity to DEBUG.
def debug!; self.level = DEBUG; end

# Returns +true+ iff the current severity level allows for the printing of
# Returns +true+ if and only if the current severity level allows for the printing of
# +INFO+ messages.
def info?; level <= INFO; end

# Sets the severity to INFO.
def info!; self.level = INFO; end

# Returns +true+ iff the current severity level allows for the printing of
# Returns +true+ if and only if the current severity level allows for the printing of
# +WARN+ messages.
def warn?; level <= WARN; end

# Sets the severity to WARN.
def warn!; self.level = WARN; end

# Returns +true+ iff the current severity level allows for the printing of
# Returns +true+ if and only if the current severity level allows for the printing of
# +ERROR+ messages.
def error?; level <= ERROR; end

# Sets the severity to ERROR.
def error!; self.level = ERROR; end

# Returns +true+ iff the current severity level allows for the printing of
# Returns +true+ if and only if the current severity level allows for the printing of
# +FATAL+ messages.
def fatal?; level <= FATAL; end

Expand Down

0 comments on commit bf6d5aa

Please sign in to comment.