Class: RSpec::SpecificationCoverage::RubyFileDetails
- Inherits:
-
Object
- Object
- RSpec::SpecificationCoverage::RubyFileDetails
- Defined in:
- lib/rspec/specification_coverage/ruby_file_details.rb
Overview
Text-based ruby file details analysis.
Instance Method Summary collapse
-
#initialize(file_contents) ⇒ RubyFileDetails
constructor
A new instance of RubyFileDetails.
-
#methods ⇒ String
All methods matching regexp except initialize.
Constructor Details
#initialize(file_contents) ⇒ RubyFileDetails
Returns a new instance of RubyFileDetails.
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
#methods ⇒ String
All methods matching regexp except initialize.
23 24 25 |
# File 'lib/rspec/specification_coverage/ruby_file_details.rb', line 23 def methods @methods ||= scan(REGEXP_METHODS) end |