class RBT::ShowStatistics

Public Class Methods

[](i = '') click to toggle source
#

RBT::ShowStatistics[]

#
# File lib/rbt/statistics/show_statistics.rb, line 74
def self.[](i = '')
  self.new(i)
end
new( commandline_arguments = nil, run_already = true ) click to toggle source
#

initialize

#
# File lib/rbt/statistics/show_statistics.rb, line 27
def initialize(
    commandline_arguments = nil,
    run_already           = true
  )
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Public Instance Methods

commandline_arguments?() click to toggle source
#

commandline_arguments?

#
# File lib/rbt/statistics/show_statistics.rb, line 56
def commandline_arguments?
  @commandline_arguments
end
reset() click to toggle source
#

reset (reset tag)

#
Calls superclass method RBT::Base#reset
# File lib/rbt/statistics/show_statistics.rb, line 41
def reset
  super()
end
run() click to toggle source
#

run (run tag)

#
# File lib/rbt/statistics/show_statistics.rb, line 63
def run
  cliner
  RBT::CompileStrategies.new
  cliner
  RBT.show_compile_time_statistics
  cliner
end
set_commandline_arguments(i = '') click to toggle source
#

set_input

#
# File lib/rbt/statistics/show_statistics.rb, line 48
def set_commandline_arguments(i = '')
  i = [i].flatten.compact
  @commandline_arguments = i
end