Class: Minitest::PathExpander::TM
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Data
|
|
|
Instance Chain:
self,
Data
|
|
| Inherits: |
Data
|
| Defined in: | lib/minitest/path_expander.rb |
Overview
Simple TestMethod (abbr TM) Data object.
Class Method Summary
- .cache
- .new(klass:, name:) ⇒ TM constructor
- .source_for(method)
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(klass:, name:) ⇒ TM
# File 'lib/minitest/path_expander.rb', line 383
def initialize klass:, name: method = klass.instance_method name path, line_s = method.source_location path = path.delete_prefix "#{Dir.pwd}/" line_e = line_s + TM.source_for(method).lines.size - 1 lines = line_s..line_e super klass:, name:, path:, lines: end
Class Method Details
.cache
[ GitHub ]# File 'lib/minitest/path_expander.rb', line 410
def self.cache = @cache ||= {}
.source_for(method)
[ GitHub ]Instance Attribute Details
#klass (readonly)
Simple TestMethod (abbr TM) Data object.
#lines (readonly)
Simple TestMethod (abbr TM) Data object.
#name (readonly)
Simple TestMethod (abbr TM) Data object.
#path (readonly)
Simple TestMethod (abbr TM) Data object.
Instance Method Details
#include?(o) ⇒ Boolean
#line_s
[ GitHub ]# File 'lib/minitest/path_expander.rb', line 416
def line_s = lines.begin