Module: Libis::Format::Cli::PromptHelper

Included in:
SubCommand
Defined in:
lib/libis/format/cli/prompt_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pastelObject (readonly)

Returns the value of attribute pastel.



9
10
11
# File 'lib/libis/format/cli/prompt_helper.rb', line 9

def pastel
  @pastel
end

#promptObject (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