Class: MetricFu::Rcov::Line
- Inherits:
-
Object
- Object
- MetricFu::Rcov::Line
- Defined in:
- lib/generators/rcov.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#was_run ⇒ Object
Returns the value of attribute was_run.
Instance Method Summary collapse
-
#initialize(content, was_run) ⇒ Line
constructor
A new instance of Line.
- #to_h ⇒ Object
Constructor Details
#initialize(content, was_run) ⇒ Line
Returns a new instance of Line.
22 23 24 25 |
# File 'lib/generators/rcov.rb', line 22 def initialize(content, was_run) @content = content @was_run = was_run end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
20 21 22 |
# File 'lib/generators/rcov.rb', line 20 def content @content end |
#was_run ⇒ Object
Returns the value of attribute was_run.
20 21 22 |
# File 'lib/generators/rcov.rb', line 20 def was_run @was_run end |
Instance Method Details
#to_h ⇒ Object
27 28 29 |
# File 'lib/generators/rcov.rb', line 27 def to_h {:content => @content, :was_run => @was_run} end |