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.
11 12 13 14 |
# File 'lib/generators/rcov.rb', line 11 def initialize(content, was_run) @content = content @was_run = was_run end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
9 10 11 |
# File 'lib/generators/rcov.rb', line 9 def content @content end |
#was_run ⇒ Object
Returns the value of attribute was_run.
9 10 11 |
# File 'lib/generators/rcov.rb', line 9 def was_run @was_run end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/generators/rcov.rb', line 16 def to_h {:content => @content, :was_run => @was_run} end |