Module: StatsDisplayer

Defined in:
lib/asker/displayer/stats_displayer.rb

Class Method Summary collapse

Class Method Details

.show(data) ⇒ Object

Parameters:

  • data (Hash)

    With concept_ai, code and problem list



10
11
12
13
14
15
16
# File 'lib/asker/displayer/stats_displayer.rb', line 10

def self.show(data)
  return unless Application.instance.config["global"]["show_mode"]

  ConceptAIDisplayer.new.call(data[:concepts_ai])
  CodeDisplayer.new.call(data[:codes_ai])
  ProblemDisplayer.new.call(data[:problems])
end