Class: Transpec::Syntax::Expect
- Inherits:
-
Transpec::Syntax
- Object
- Transpec::Syntax
- Transpec::Syntax::Expect
- Includes:
- Mixin::ExpectBase
- Defined in:
- lib/transpec/syntax/expect.rb
Instance Attribute Summary
Attributes inherited from Transpec::Syntax
#node, #project, #report, #runtime_data, #source_rewriter
Instance Method Summary collapse
Methods included from Mixin::ExpectBase
#block_node, #current_syntax_type, #matcher_node, #positive?, #subject_node, #subject_range, #to_node
Methods included from Mixin::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 Mixin::Send::TargetDetection
Methods included from Mixin::MatcherOwner
Methods inherited from Transpec::Syntax
#add_record, #conversion_target?, #dependent_syntaxes, #expression_range, #initialize, #inspect, #parent_node, #rspec_version, snake_case_name, standalone?, #static_context_inspector
Methods included from Collection
#all_syntaxes, #inherited, #mixins, #require_all, #standalone_syntaxes
Methods included from DynamicAnalysis
#register_dynamic_analysis_request
Constructor Details
This class inherits a constructor from Transpec::Syntax
Instance Method Details
#any_instance? ⇒ Boolean
24 25 26 |
# File 'lib/transpec/syntax/expect.rb', line 24 def any_instance? method_name == :expect_any_instance_of end |
#dynamic_analysis_target? ⇒ Boolean
16 17 18 |
# File 'lib/transpec/syntax/expect.rb', line 16 def dynamic_analysis_target? super && [:expect, :expect_any_instance_of].include?(method_name) end |
#method_name_for_instance ⇒ Object
20 21 22 |
# File 'lib/transpec/syntax/expect.rb', line 20 def method_name_for_instance :expect end |