Class: Transpec::Syntax::RSpecConfigure::Mocks
- Defined in:
- lib/transpec/syntax/rspec_configure/mocks.rb
Constant Summary
Constants included from Util
Util::LITERAL_TYPES, Util::WHITESPACES
Instance Attribute Summary
Attributes inherited from Framework
Instance Method Summary collapse
- #block_method_name ⇒ Object
- #yield_receiver_to_any_instance_implementation_blocks=(boolean) ⇒ Object
Methods inherited from Framework
Methods included from Framework::SyntaxConfiguration
Methods included from Framework::ConfigurationAddition
#add_configuration!, #block_node_to_insert_code, #body_indentation, #config_variable_name, #empty_block_body?, #framework_begin_code, #framework_end_code, #new_config_variable_name, #rspec_configure_body_indentation
Methods included from Util
beginning_of_line_range, block_node_taken_by_method, const_name, contain_here_document?, each_backward_chained_node, each_forward_chained_node, expand_range_to_adjacent_whitespaces, find_consecutive_whitespace_position, first_block_arg_name, here_document?, in_explicit_parentheses?, indentation_of_line, literal?, proc_literal?
Constructor Details
This class inherits a constructor from Transpec::Syntax::RSpecConfigure::Framework
Instance Method Details
#block_method_name ⇒ Object
9 10 11 |
# File 'lib/transpec/syntax/rspec_configure/mocks.rb', line 9 def block_method_name :mock_with end |
#yield_receiver_to_any_instance_implementation_blocks=(boolean) ⇒ Object
13 14 15 |
# File 'lib/transpec/syntax/rspec_configure/mocks.rb', line 13 def yield_receiver_to_any_instance_implementation_blocks=(boolean) set_configuration!(:yield_receiver_to_any_instance_implementation_blocks, boolean) end |