class Transpec::Syntax::Receive
Public Instance Methods
add_receiver_arg_to_any_instance_implementation_block!()
click to toggle source
Calls superclass method
# File lib/transpec/syntax/receive.rb, line 23 def add_receiver_arg_to_any_instance_implementation_block! added = super return unless added add_record(AnyInstanceBlockRecordBuilder.build(self)) end
any_instance?()
click to toggle source
# File lib/transpec/syntax/receive.rb, line 29 def any_instance? expectation.any_instance? end
any_instance_block_node()
click to toggle source
Calls superclass method
# File lib/transpec/syntax/receive.rb, line 33 def any_instance_block_node return unless any_instance? super || expectation.block_node end
dynamic_analysis_target?()
click to toggle source
Calls superclass method
Transpec::Syntax#dynamic_analysis_target?
# File lib/transpec/syntax/receive.rb, line 13 def dynamic_analysis_target? super && receiver_node.nil? && method_name == :receive end
remove_useless_and_return!()
click to toggle source
Calls superclass method
# File lib/transpec/syntax/receive.rb, line 17 def remove_useless_and_return! removed = super return unless removed add_record(UselessAndReturnRecordBuilder.build(self)) end