Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "iff" with "if and only if" #54

Merged
merged 1 commit into from
Jan 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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