Class: Icepick::Config
- Inherits:
-
Object
- Object
- Icepick::Config
- Defined in:
- lib/icepick/config.rb
Instance Attribute Summary collapse
-
#formatted ⇒ Object
(also: #formatted?)
Whether or not to use colors and formatting.
-
#main_layout ⇒ Object
The mustache compatiable layouts for Pry prompts.
-
#name ⇒ Object
The prompt name.
-
#separator ⇒ Object
Separator for the prompt.
-
#wait_layout ⇒ Object
The mustache compatiable layouts for Pry prompts.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Public: Create a new instance of the config with defaults.
Constructor Details
#initialize ⇒ Config
Public: Create a new instance of the config with defaults
Returns a new instance
19 20 21 22 23 24 25 |
# File 'lib/icepick/config.rb', line 19 def initialize self.separator = '>' self.formatted = true self.main_layout = '{line_num}. {name}@{context} {separator} ' self.wait_layout = '{spaces} {separator} ' self.name = 'Icepick' end |
Instance Attribute Details
#formatted ⇒ Object Also known as: formatted?
Whether or not to use colors and formatting
7 8 9 |
# File 'lib/icepick/config.rb', line 7 def formatted @formatted end |
#main_layout ⇒ Object
The mustache compatiable layouts for Pry prompts
11 12 13 |
# File 'lib/icepick/config.rb', line 11 def main_layout @main_layout end |
#name ⇒ Object
The prompt name
14 15 16 |
# File 'lib/icepick/config.rb', line 14 def name @name end |
#separator ⇒ Object
Separator for the prompt
4 5 6 |
# File 'lib/icepick/config.rb', line 4 def separator @separator end |
#wait_layout ⇒ Object
The mustache compatiable layouts for Pry prompts
11 12 13 |
# File 'lib/icepick/config.rb', line 11 def wait_layout @wait_layout end |