Module: Transpec::Syntax::Mixin::Send::TargetDetection
- Included in:
- Transpec::Syntax::Mixin::Send
- Defined in:
- lib/transpec/syntax/mixin/send.rb
Instance Method Summary collapse
Instance Method Details
#conversion_target? ⇒ Boolean
16 17 18 19 20 |
# File 'lib/transpec/syntax/mixin/send.rb', line 16 def conversion_target? return false unless dynamic_analysis_target? return true unless runtime_data.run?(send_analysis_target_node) defined_by_rspec? end |
#dynamic_analysis_target? ⇒ Boolean
12 13 14 |
# File 'lib/transpec/syntax/mixin/send.rb', line 12 def dynamic_analysis_target? node && node.send_type? end |