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.
10 11 12 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 10 def pastel @pastel end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
10 11 12 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 10 def prompt @prompt end |
Instance Method Details
#initialize(*args) ⇒ Object
12 13 14 15 16 |
# File 'lib/libis/format/cli/prompt_helper.rb', line 12 def initialize(*args) @prompt = TTY::Prompt.new @pastel = Pastel.new super end |