From 0fcc10cc1f2322ba0db0b91b5df9ed4c9ff19fa7 Mon Sep 17 00:00:00 2001 From: Robert Gleeson Date: Tue, 4 Feb 2014 21:55:27 +0100 Subject: [PATCH] add 'Symbol' to the un'dupables. --- lib/pry/commands/watch_expression/expression.rb | 2 +- lib/pry/config/behavior.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/commands/watch_expression/expression.rb b/lib/pry/commands/watch_expression/expression.rb index f9d9fa99..d01379a1 100644 --- a/lib/pry/commands/watch_expression/expression.rb +++ b/lib/pry/commands/watch_expression/expression.rb @@ -1,7 +1,7 @@ class Pry class Command::WatchExpression class Expression - NODUP = [TrueClass, FalseClass, NilClass, Numeric].freeze + NODUP = [TrueClass, FalseClass, NilClass, Numeric, Symbol].freeze attr_reader :target, :source, :value, :previous_value def initialize(target, source) diff --git a/lib/pry/config/behavior.rb b/lib/pry/config/behavior.rb index d72d7afa..e4c950f0 100644 --- a/lib/pry/config/behavior.rb +++ b/lib/pry/config/behavior.rb @@ -1,6 +1,6 @@ module Pry::Config::Behavior ASSIGNMENT = "=".freeze - NODUP = [TrueClass, FalseClass, NilClass, Module, Proc, Numeric].freeze + NODUP = [TrueClass, FalseClass, NilClass, Symbol, Numeric, Module, Proc].freeze RESERVED_KEYS = [ "[]", "[]=", "merge!", "respond_to?", "key?", "refresh",