Method: CEML::Script#color

Defined in:
lib/ceml/lang/script.rb

#color(odds) ⇒ Object

likelihoods =



24
25
26
27
28
# File 'lib/ceml/lang/script.rb', line 24

def color(odds)
  return :red    if odds < 0.1
  return :yellow if odds < 0.4
  return :green
end