Class: RuboCop::Cop::RSpec::UnusedLet::SharedExampleRegistry::Definition
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::RSpec::UnusedLet::SharedExampleRegistry::Definition
- Defined in:
- lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb,
sig/rubocop/cop/rspec/unused_let/shared_example_registry.rbs
Overview
One shared block's region data, gathered across its whole subtree.
Instance Attribute Summary collapse
-
#defs ⇒ Object
Returns the value of attribute defs.
-
#inclusions ⇒ Object
Returns the value of attribute inclusions.
-
#node ⇒ Object
Returns the value of attribute node.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#refs ⇒ Object
Returns the value of attribute refs.
Class Method Summary collapse
Instance Attribute Details
#defs ⇒ Object
Returns the value of attribute defs
26 27 28 |
# File 'lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb', line 26 def defs @defs end |
#inclusions ⇒ Object
Returns the value of attribute inclusions
26 27 28 |
# File 'lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb', line 26 def inclusions @inclusions end |
#node ⇒ Object
Returns the value of attribute node
26 27 28 |
# File 'lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb', line 26 def node @node end |
#owner ⇒ Object
Returns the value of attribute owner
26 27 28 |
# File 'lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb', line 26 def owner @owner end |
#refs ⇒ Object
Returns the value of attribute refs
26 27 28 |
# File 'lib/rubocop/cop/rspec/unused_let/shared_example_registry.rb', line 26 def refs @refs end |
Class Method Details
.new(owner, node, refs, defs, inclusions) ⇒ instance .new(owner:, node:, refs:, defs:, inclusions:) ⇒ instance
34 35 |
# File 'sig/rubocop/cop/rspec/unused_let/shared_example_registry.rbs', line 34
def self.new: (?RuboCop::AST::Node? owner, ?RuboCop::AST::Node node, ?Set[Symbol] refs, ?Set[Symbol] defs, ?Array[[ String?, RuboCop::AST::Node ]] inclusions) -> instance
| (?owner: RuboCop::AST::Node?, ?node: RuboCop::AST::Node, ?refs: Set[Symbol], ?defs: Set[Symbol], ?inclusions: Array[[ String?, RuboCop::AST::Node ]]) -> instance
|