Class: MetricFu::Rcov::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/rcov.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



20
21
22
# File 'lib/generators/rcov.rb', line 20

def content
  @content
end

#was_runObject

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_hObject



27
28
29
# File 'lib/generators/rcov.rb', line 27

def to_h
  {:content => @content, :was_run => @was_run}
end