Method: Fontist::FormulaPicker#call

Defined in:
lib/fontist/formula_picker.rb

#call(formulas) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/fontist/formula_picker.rb', line 15

def call(formulas)
  return [] if formulas.empty?

  list = filter(formulas)
  return [] if list.empty?

  choose(list)
end