Method: Textbringer::Utils.read_expression

Defined in:
lib/textbringer/utils.rb

.read_expression(prompt = "Expression: ") ⇒ Object



341
342
343
344
345
346
# File 'lib/textbringer/utils.rb', line 341

def read_expression(prompt = "Expression: ")
  f = ->(s) {
    EXPRESSION_COMPLETOR.retrieve_completion_data(s, **EXPRESSION_COMPLETOR_OPTIONS).compact
  }
  read_from_minibuffer(prompt, completion_proc: f)
end