lib/contrast/agent/patching/policy/policy_node.rb in contrast-agent-3.10.2 vs lib/contrast/agent/patching/policy/policy_node.rb in contrast-agent-3.11.0

- old
+ new

@@ -13,12 +13,12 @@ # @abstract class PolicyNode include Contrast::Components::Interface access_component :scope - attr_accessor :class_name, :instance_method, :method_name, :method_scope, :method_visibility - attr_reader :properties + attr_accessor :class_name, :instance_method, :method_name, :method_visibility + attr_reader :properties, :method_scope def node_class raise NotImplementedError, 'specify the type of the feature for which this node patches' end @@ -56,17 +56,9 @@ end # just turns this into a ruby-ism def instance_method? instance_method - end - - def private? - @method_visibility == :private - end - - def public? - @method_visibility == :public end private # Convert strings to symbols here, once, to avoid doing so on every