Skip to content

Commit

Permalink
📝 Fix documentation on last hash config
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Feb 28, 2024
1 parent e8657dc commit 2c3b761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
rubocop:
name: RuboCop
strategy:
fail-fast: false
fail-fast: falsebest
matrix:
experimental: [true]
rubygems:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class Car
# Override configuration options for any instance method(s), by passing a hash as the last argument
# In the last hash any non-Configuration keys will be data that gets logged,
# and also made available to last_hash_to_s_proc
i_logged [:faster], config: {add_invocation_id: false}
i_logged [:faster], {add_invocation_id: false}

# You can also use `i_logged` as a true method decorator:
i_logged def slower
Expand Down Expand Up @@ -400,7 +400,7 @@ class Car
# Override options for any instance method(s), by passing a hash as the last argument
# In the last hash any non-Configuration keys will be data that gets added to the event payload,
# and also made available to last_hash_to_s_proc
i_notified [:faster], config: {add_invocation_id: false}
i_notified [:faster], {add_invocation_id: false}

def will_not_be_notified
false
Expand Down
2 changes: 1 addition & 1 deletion lib/debug_logging/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Configuration
#
# extend DebugLogging::InstanceLogger
# i_logged [:drive, :stop],
# config: {
# {
# logger: Logger.new(STDOUT) # probably want to override to be the Rails.logger
# log_level: :debug # at what level do the messages created by this gem sent at?
# last_hash_to_s_proc: nil # e.g. ->(hash) { "keys: #{hash.keys}" }
Expand Down

0 comments on commit 2c3b761

Please sign in to comment.