Module: Transpec::Syntax::Mixin::MonkeyPatchAnyInstance
- Extended by:
- ActiveSupport::Concern
- Includes:
- AST::Sexp, MonkeyPatch
- Included in:
- Transpec::Syntax::MethodStub, ShouldReceive
- Defined in:
- lib/transpec/syntax/mixin/monkey_patch_any_instance.rb
Instance Method Summary collapse
Methods included from MonkeyPatch
#check_syntax_availability, #register_request_of_syntax_availability_inspection, #subject_node, #subject_range
Methods included from Send
#arg_node, #arg_nodes, #arg_range, #args_range, #method_name, #parentheses_range, #range_after_arg, #range_in_between_receiver_and_selector, #range_in_between_selector_and_arg, #receiver_node, #receiver_range, #selector_range
Instance Method Details
#any_instance? ⇒ Boolean
33 34 35 36 37 38 |
# File 'lib/transpec/syntax/mixin/monkey_patch_any_instance.rb', line 33 def any_instance? return true unless any_instance_target_node.nil? node_data = runtime_node_data(subject_node) return false unless node_data && node_data[:any_instance_target_class_name] !node_data[:any_instance_target_class_name].result.nil? end |