Module: AbsurdityHelper

Defined in:
app/helpers/absurdity_helper.rb

Instance Method Summary collapse

Instance Method Details

#completed_text(completed) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'app/helpers/absurdity_helper.rb', line 9

def completed_text(completed)
  if completed == :completed
    (:span, "Completed")
  elsif completed
    (:span, "Completed: #{completed}")
  else
    ""
  end
end

#metric_info(metrics, metric, count) ⇒ Object



3
4
5
6
7
# File 'app/helpers/absurdity_helper.rb', line 3

def metric_info(metrics, metric, count)
  (:span, "#{metric.to_s.humanize}: ", class: "metric")
  .concat "#{count} "
  # str += metric_ratios(metrics, metric, count)
end