Module: Libis::Format::Cli::PromptHelper
- Included in:
- SubCommand
- Defined in:
- lib/libis/format/cli/prompt_helper.rb
Instance Attribute Summary collapse
-
#pastel ⇒ Object
readonly
Returns the value of attribute pastel.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Instance Method Summary collapse
Instance Attribute Details
#pastel ⇒ Object (readonly)
Returns the value of attribute pastel.
9 10 11 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 9 def pastel @pastel end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
9 10 11 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 9 def prompt @prompt end |
Instance Method Details
#initialize(*args) ⇒ Object
11 12 13 14 15 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 11 def initialize(*args) @prompt = TTY::Prompt.new @pastel = Pastel.new super end |