Class: RuboCop::RSpec::Example
Overview
Wrapper for RSpec examples
Constant Summary
Constants included
from Language
Language::ALL
Instance Method Summary
collapse
Methods inherited from Concept
#eql?, #hash, #initialize, #to_node
Instance Method Details
#definition ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/rubocop/rspec/example.rb', line 23
def definition
if node.send_type?
node
else
node.children.first
end
end
|
#doc_string ⇒ Object
11
12
13
|
# File 'lib/rubocop/rspec/example.rb', line 11
def doc_string
(definition)
end
|
#implementation ⇒ Object
19
20
21
|
# File 'lib/rubocop/rspec/example.rb', line 19
def implementation
(node)
end
|
15
16
17
|
# File 'lib/rubocop/rspec/example.rb', line 15
def metadata
(definition)
end
|