Skip to content

Commit b02081a

Browse files
Use appropriate monospace style [ci-skip]
Code constants should be styled as monospace, but "True" and "False" should not be.
1 parent 6f3e360 commit b02081a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

activesupport/lib/active_support/broadcast_logger.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -163,57 +163,57 @@ def close
163163
dispatch { |logger| logger.close }
164164
end
165165

166-
# +True+ if the log level allows entries with severity Logger::DEBUG to be written
167-
# to at least one broadcast. +False+ otherwise.
166+
# True if the log level allows entries with severity +Logger::DEBUG+ to be written
167+
# to at least one broadcast. False otherwise.
168168
def debug?
169169
@broadcasts.any? { |logger| logger.debug? }
170170
end
171171

172-
# Sets the log level to Logger::DEBUG for the whole broadcast.
172+
# Sets the log level to +Logger::DEBUG+ for the whole broadcast.
173173
def debug!
174174
dispatch { |logger| logger.debug! }
175175
end
176176

177-
# +True+ if the log level allows entries with severity Logger::INFO to be written
178-
# to at least one broadcast. +False+ otherwise.
177+
# True if the log level allows entries with severity +Logger::INFO+ to be written
178+
# to at least one broadcast. False otherwise.
179179
def info?
180180
@broadcasts.any? { |logger| logger.info? }
181181
end
182182

183-
# Sets the log level to Logger::INFO for the whole broadcast.
183+
# Sets the log level to +Logger::INFO+ for the whole broadcast.
184184
def info!
185185
dispatch { |logger| logger.info! }
186186
end
187187

188-
# +True+ if the log level allows entries with severity Logger::WARN to be written
189-
# to at least one broadcast. +False+ otherwise.
188+
# True if the log level allows entries with severity +Logger::WARN+ to be written
189+
# to at least one broadcast. False otherwise.
190190
def warn?
191191
@broadcasts.any? { |logger| logger.warn? }
192192
end
193193

194-
# Sets the log level to Logger::WARN for the whole broadcast.
194+
# Sets the log level to +Logger::WARN+ for the whole broadcast.
195195
def warn!
196196
dispatch { |logger| logger.warn! }
197197
end
198198

199-
# +True+ if the log level allows entries with severity Logger::ERROR to be written
200-
# to at least one broadcast. +False+ otherwise.
199+
# True if the log level allows entries with severity +Logger::ERROR+ to be written
200+
# to at least one broadcast. False otherwise.
201201
def error?
202202
@broadcasts.any? { |logger| logger.error? }
203203
end
204204

205-
# Sets the log level to Logger::ERROR for the whole broadcast.
205+
# Sets the log level to +Logger::ERROR+ for the whole broadcast.
206206
def error!
207207
dispatch { |logger| logger.error! }
208208
end
209209

210-
# +True+ if the log level allows entries with severity Logger::FATAL to be written
211-
# to at least one broadcast. +False+ otherwise.
210+
# True if the log level allows entries with severity +Logger::FATAL+ to be written
211+
# to at least one broadcast. False otherwise.
212212
def fatal?
213213
@broadcasts.any? { |logger| logger.fatal? }
214214
end
215215

216-
# Sets the log level to Logger::FATAL for the whole broadcast.
216+
# Sets the log level to +Logger::FATAL+ for the whole broadcast.
217217
def fatal!
218218
dispatch { |logger| logger.fatal! }
219219
end

0 commit comments

Comments
 (0)