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