Class: RuboCop::RSpec::Concept
Overview
Wrapper for RSpec DSL methods
Constant Summary
Constants included
from Language
Language::ALL
Instance Method Summary
collapse
Constructor Details
#initialize(node) ⇒ Concept
Returns a new instance of Concept.
11
12
13
|
# File 'lib/rubocop/rspec/concept.rb', line 11
def initialize(node)
@node = node
end
|
Instance Method Details
#eql?(other) ⇒ Boolean
Also known as:
==
15
16
17
|
# File 'lib/rubocop/rspec/concept.rb', line 15
def eql?(other)
node == other.node
end
|
#hash ⇒ Object
21
22
23
|
# File 'lib/rubocop/rspec/concept.rb', line 21
def hash
[self.class, node].hash
end
|
#to_node ⇒ Object
25
26
27
|
# File 'lib/rubocop/rspec/concept.rb', line 25
def to_node
node
end
|