Class: RSpec::Covers::MethodEntry
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Covers::MethodEntry
- Defined in:
- lib/rspec/covers/method_entry.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#label ⇒ Object
Returns the value of attribute label.
-
#line ⇒ Object
Returns the value of attribute line.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
5 6 7 |
# File 'lib/rspec/covers/method_entry.rb', line 5 def file @file end |
#label ⇒ Object
Returns the value of attribute label
5 6 7 |
# File 'lib/rspec/covers/method_entry.rb', line 5 def label @label end |
#line ⇒ Object
Returns the value of attribute line
5 6 7 |
# File 'lib/rspec/covers/method_entry.rb', line 5 def line @line end |
#region ⇒ Object
Returns the value of attribute region
5 6 7 |
# File 'lib/rspec/covers/method_entry.rb', line 5 def region @region end |
Instance Method Details
#include?(location) ⇒ Boolean
6 7 8 |
# File 'lib/rspec/covers/method_entry.rb', line 6 def include?(location) region.include?(location) end |
#to_h ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rspec/covers/method_entry.rb', line 10 def to_h { label: label, file: file, line: line } end |