class RuboCop::EightyFourCodes::Example

Wrapper for RSpec examples

Public Instance Methods

definition() click to toggle source
# File lib/rubocop/eighty_four_codes/example.rb, line 23
def definition
  if node.send_type?
    node
  else
    node.children.first
  end
end
doc_string() click to toggle source
# File lib/rubocop/eighty_four_codes/example.rb, line 11
def doc_string
  extract_doc_string(definition)
end
implementation() click to toggle source
# File lib/rubocop/eighty_four_codes/example.rb, line 19
def implementation
  extract_implementation(node)
end
metadata() click to toggle source
# File lib/rubocop/eighty_four_codes/example.rb, line 15
def metadata
  extract_metadata(definition)
end