Class: Transpec::Syntax::Double

Inherits:
Transpec::Syntax show all
Includes:
SendNodeSyntax
Defined in:
lib/transpec/syntax/double.rb

Instance Attribute Summary

Attributes inherited from Transpec::Syntax

#ancestor_nodes, #in_example_group_context, #node, #source_rewriter

Instance Method Summary collapse

Methods included from SendNodeSyntax

#arg_node, #arg_range, #method_name, #receiver_node, #receiver_range, #selector_range

Methods inherited from Transpec::Syntax

all, #expression_range, inherited, #initialize, #parent_node, snake_case_name, target_node?

Constructor Details

This class inherits a constructor from Transpec::Syntax

Instance Method Details

#convert_to_double!Object



11
12
13
14
# File 'lib/transpec/syntax/double.rb', line 11

def convert_to_double!
  return if method_name == :double
  replace(selector_range, 'double')
end