Skip to content

Commit

Permalink
use **options for Silencer#initialize and #configure
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Aug 18, 2021
1 parent 306a8bc commit 4592133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/listen/silencer.rb
Expand Up @@ -60,12 +60,12 @@ class Silencer
# TODO: deprecate these mutators; use attr_reader instead
attr_accessor :only_patterns, :ignore_patterns

def initialize(options = {})
configure(options)
def initialize(**options)
configure(**options)
end

# TODO: deprecate this mutator
def configure(options)
def configure(**options)
@only_patterns = options[:only] ? Array(options[:only]) : nil
@ignore_patterns = _init_ignores(options[:ignore], options[:ignore!])
end
Expand Down

0 comments on commit 4592133

Please sign in to comment.