Module: Libis::Metadata::Cli::Helper
- Included in:
- Libis::Metadata::CommandLine
- Defined in:
- lib/libis/metadata/cli/cli_helper.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
18 19 20 |
# File 'lib/libis/metadata/cli/cli_helper.rb', line 18 def prompt @prompt end |
Class Method Details
.included(base) ⇒ Object
14 15 16 |
# File 'lib/libis/metadata/cli/cli_helper.rb', line 14 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(*args) ⇒ Object
20 21 22 23 |
# File 'lib/libis/metadata/cli/cli_helper.rb', line 20 def initialize(*args) @prompt = TTY::Prompt.new super end |