mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/logger] Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice. https://github.com/ruby/logger/commit/4fa0c28e00
This commit is contained in:
parent
3fdc58c08b
commit
b56c8f814e
1 changed files with 5 additions and 5 deletions
|
@ -302,35 +302,35 @@ class Logger
|
||||||
alias sev_threshold level
|
alias sev_threshold level
|
||||||
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.
|
# +DEBUG+ messages.
|
||||||
def debug?; level <= DEBUG; end
|
def debug?; level <= DEBUG; end
|
||||||
|
|
||||||
# Sets the severity to DEBUG.
|
# Sets the severity to DEBUG.
|
||||||
def debug!; self.level = DEBUG; end
|
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.
|
# +INFO+ messages.
|
||||||
def info?; level <= INFO; end
|
def info?; level <= INFO; end
|
||||||
|
|
||||||
# Sets the severity to INFO.
|
# Sets the severity to INFO.
|
||||||
def info!; self.level = INFO; end
|
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.
|
# +WARN+ messages.
|
||||||
def warn?; level <= WARN; end
|
def warn?; level <= WARN; end
|
||||||
|
|
||||||
# Sets the severity to WARN.
|
# Sets the severity to WARN.
|
||||||
def warn!; self.level = WARN; end
|
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.
|
# +ERROR+ messages.
|
||||||
def error?; level <= ERROR; end
|
def error?; level <= ERROR; end
|
||||||
|
|
||||||
# Sets the severity to ERROR.
|
# Sets the severity to ERROR.
|
||||||
def error!; self.level = ERROR; end
|
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.
|
# +FATAL+ messages.
|
||||||
def fatal?; level <= FATAL; end
|
def fatal?; level <= FATAL; end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue