Class: RSpec::SpecificationCoverage::RubyFileDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/specification_coverage/ruby_file_details.rb

Overview

Text-based ruby file details analysis.

Instance Method Summary collapse

Constructor Details

#initialize(file_contents) ⇒ RubyFileDetails

Returns a new instance of RubyFileDetails.

Parameters:

  • file_contents (String)


16
17
18
# File 'lib/rspec/specification_coverage/ruby_file_details.rb', line 16

def initialize(file_contents)
  @file_contents = file_contents
end

Instance Method Details

#methodsString

All methods matching regexp except initialize.

Returns:

  • (String)


23
24
25
# File 'lib/rspec/specification_coverage/ruby_file_details.rb', line 23

def methods
  @methods ||= scan(REGEXP_METHODS)
end