sig/whoop.rbs in whoop-1.0.2 vs sig/whoop.rbs in whoop-1.0.3
- old
+ new
@@ -12,10 +12,13 @@
module Main
COLORS: untyped
FORMATS: untyped
PATTERN: untyped
COUNT: untyped
+ INDENT: untyped
+ TOP_LINE_CHAR: untyped
+ BOTTOM_LINE_CHAR: untyped
# sord omit - no YARD return type given, using untyped
# Log the message to the logger
#
# _@param_ `label` — (optional) - the label or object to log
@@ -29,17 +32,20 @@
# _@param_ `format` — - the format to use for the message (one of :json, :sql, :plain)
#
# _@param_ `caller_depth` — - the depth of the caller to use for the source (default: 0)
#
# _@param_ `explain` — - whether to explain the SQL query (default: false)
+ #
+ # _@param_ `context` — - Any additional context you'd like to include in the log
def whoop: (
?String? label,
?pattern: String,
?count: Integer,
?color: Symbol,
?format: Symbol,
?caller_depth: Integer,
- ?explain: bool
+ ?explain: bool,
+ ?context: ::Hash[untyped, untyped]?
) -> untyped
# Remove the Rails.root from the caller path
#
# _@param_ `caller_path` — - path of the the file and line number of the caller
\ No newline at end of file