1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

add 'Symbol' to the un'dupables.

This commit is contained in:
Robert Gleeson 2014-02-04 21:55:27 +01:00
parent 95d9d9a054
commit 0fcc10cc1f
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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",