summaryrefslogtreecommitdiff
path: root/lib/pry/commands/watch_expression.rb
diff options
context:
space:
mode:
authorDouglas Eichelberger <dduugg@gmail.com>2022-09-11 15:15:36 -0700
committerDouglas Eichelberger <dduugg@gmail.com>2022-09-11 15:15:36 -0700
commit0e06fc6ab27a88f7c451fc7de9645f7cab050ad9 (patch)
tree4e59e32730d576be28aecbc7e6c5be0803e40476 /lib/pry/commands/watch_expression.rb
parent43c2d3c79419dd79babb0f9c5f3920eb9cd4677f (diff)
downloadpry-0e06fc6ab27a88f7c451fc7de9645f7cab050ad9.tar.gz
Complete Style/SymbolArray todo
Diffstat (limited to 'lib/pry/commands/watch_expression.rb')
-rw-r--r--lib/pry/commands/watch_expression.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/watch_expression.rb b/lib/pry/commands/watch_expression.rb
index f732a53f..3bdb3998 100644
--- a/lib/pry/commands/watch_expression.rb
+++ b/lib/pry/commands/watch_expression.rb
@@ -96,7 +96,7 @@ class Pry
end
def add_hook
- hook = [:after_eval, :watch_expression]
+ hook = %i[after_eval watch_expression]
return if pry_instance.hooks.hook_exists?(*hook)
pry_instance.hooks.add_hook(*hook) do |_, pry_instance|