Class: Dcov::AnalysisContext

Inherits:
Object
  • Object
show all
Defined in:
lib/dcov/analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, comment, classifier, stats) ⇒ AnalysisContext

Returns a new instance of AnalysisContext.



73
74
75
76
77
78
# File 'lib/dcov/analyzer.rb', line 73

def initialize(token, comment, classifier, stats)
  @token = token
  @comment = comment || ''
  @classifier = classifier
  @stats = stats
end

Instance Attribute Details

#classifierObject

Returns the value of attribute classifier.



71
72
73
# File 'lib/dcov/analyzer.rb', line 71

def classifier
  @classifier
end

#commentObject

Returns the value of attribute comment.



71
72
73
# File 'lib/dcov/analyzer.rb', line 71

def comment
  @comment
end

#statsObject

Returns the value of attribute stats.



71
72
73
# File 'lib/dcov/analyzer.rb', line 71

def stats
  @stats
end

#tokenObject

Returns the value of attribute token.



71
72
73
# File 'lib/dcov/analyzer.rb', line 71

def token
  @token
end

Instance Method Details

#must(description) {|description| ... } ⇒ Object

Yields:

  • (description)


80
81
82
# File 'lib/dcov/analyzer.rb', line 80

def must(description)
  yield description      
end