Class: Dcov::AnalysisContext
- Inherits:
-
Object
- Object
- Dcov::AnalysisContext
- Defined in:
- lib/dcov/analyzer.rb
Instance Attribute Summary collapse
-
#classifier ⇒ Object
Returns the value of attribute classifier.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, comment, classifier, stats) ⇒ AnalysisContext
constructor
A new instance of AnalysisContext.
- #must(description) {|description| ... } ⇒ Object
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
#classifier ⇒ Object
Returns the value of attribute classifier.
71 72 73 |
# File 'lib/dcov/analyzer.rb', line 71 def classifier @classifier end |
#comment ⇒ Object
Returns the value of attribute comment.
71 72 73 |
# File 'lib/dcov/analyzer.rb', line 71 def comment @comment end |
#stats ⇒ Object
Returns the value of attribute stats.
71 72 73 |
# File 'lib/dcov/analyzer.rb', line 71 def stats @stats end |
#token ⇒ Object
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
80 81 82 |
# File 'lib/dcov/analyzer.rb', line 80 def must(description) yield description end |