class Speedflow::Plugin::Prompt
Plugin
prompt
Attributes
prompt[W]
@return [TTY::Prompt] TTY::Prompt.
Public Instance Methods
errors(plugin_name, exception)
click to toggle source
Public: Errors.
exception - StandardError.
Returns nothing.
# File lib/speedflow/plugin/prompt.rb, line 15 def errors(plugin_name, exception) prompt.error "#{plugin_name.downcase.capitalize} errors" prompt.warn exception.message end
method_missing(method, *args, &block)
click to toggle source
Delegate.
method - Method. args - Arguments. block - Block.
Returns wathever.
# File lib/speedflow/plugin/prompt.rb, line 27 def method_missing(method, *args, &block) prompt.send(method, *args, &block) end
prompt()
click to toggle source
Public: TTY prompt.
Returns ::TTY::Prompt instance.
# File lib/speedflow/plugin/prompt.rb, line 34 def prompt @prompt ||= ::TTY::Prompt.new end