lib/mutant/constants.rb in mutant-0.5.17 vs lib/mutant/constants.rb in mutant-0.5.18

- old
+ new

@@ -2,9 +2,12 @@ module Mutant symbolset = ->(strings) { strings.map(&:to_sym).to_set.freeze } + SCOPE_OPERATOR = '::'.freeze + CBASE_PATTERN = /\A#{SCOPE_OPERATOR}/.freeze + # Set of nodes that cannot be on the LHS of an assignment NOT_ASSIGNABLE = symbolset.(%w[int float str dstr class module self]) # Set of op-assign types OP_ASSIGN = symbolset.call(%w[or_asgn and_asgn op_asgn])