Class: Ruby::Merge::NocovNodeBase::Location
- Inherits:
-
Struct
- Object
- Struct
- Ruby::Merge::NocovNodeBase::Location
- Defined in:
- lib/ruby/merge/nocov_node_base.rb
Instance Attribute Summary collapse
-
#end_line ⇒ Object
Returns the value of attribute end_line.
-
#start_line ⇒ Object
Returns the value of attribute start_line.
Instance Method Summary collapse
Instance Attribute Details
#end_line ⇒ Object
Returns the value of attribute end_line
15 16 17 |
# File 'lib/ruby/merge/nocov_node_base.rb', line 15 def end_line @end_line end |
#start_line ⇒ Object
Returns the value of attribute start_line
15 16 17 |
# File 'lib/ruby/merge/nocov_node_base.rb', line 15 def start_line @start_line end |
Instance Method Details
#cover?(line) ⇒ Boolean
16 17 18 |
# File 'lib/ruby/merge/nocov_node_base.rb', line 16 def cover?(line) (start_line..end_line).cover?(line) end |