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
#register_syntax_availability_analysis_request, #subject_node, #subject_range, #syntax_available?
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
Methods included from Send::TargetDetection
#conversion_target?, #dynamic_analysis_target?
Instance Method Details
#any_instance? ⇒ Boolean
38 39 40 41 |
# File 'lib/transpec/syntax/mixin/monkey_patch_any_instance.rb', line 38 def any_instance? return true unless any_instance_target_node.nil? runtime_data[subject_node, :any_instance_target_class_name] end |