class Reek::Context::StatementCounter
Responsible for counting the statements in a ‘CodeContext`.
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/reek/context/statement_counter.rb, line 19 def decrease_by(number) self.value = value - number end
Source
# File lib/reek/context/statement_counter.rb, line 15 def increase_by(sexp) self.value = value + sexp.length if sexp end