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.


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

#contentObject

Returns the value of attribute content


9
10
11
# File 'lib/generators/rcov.rb', line 9

def content
  @content
end

#was_runObject

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_hObject


16
17
18
# File 'lib/generators/rcov.rb', line 16

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