class TcpsnitchAnalyzer::DescriptiveStat

Public Class Methods

add_val(val) click to toggle source
# File lib/tcpsnitch_analyzer/descriptive_stat.rb, line 8
def self.add_val(val)
  if val.is_a? Integer
    @@data.push(val)
  else
    if val.is_a? Hash
      TcpsnitchAnalyzer.error("invalid value for descriptive statistic: "\
                              "non-terminal node")
    else
      TcpsnitchAnalyzer.error("invalid value for descriptive statistic: '#{val}'")
    end
  end
end
print(options) click to toggle source