Class: Icepick::Config
- Inherits:
-
Object
- Object
- Icepick::Config
- Defined in:
- lib/icepick/config.rb
Instance Attribute Summary collapse
-
#main_layout ⇒ Object
The mustache compatiable layouts for Pry prompts.
-
#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
12 13 14 15 16 |
# File 'lib/icepick/config.rb', line 12 def initialize self.separator = '>'.bold self.main_layout = '{line_num}. {context.colorize(:cyan)} {separator} ' self.wait_layout = '{spaces} {separator} ' end |
Instance Attribute Details
#main_layout ⇒ Object
The mustache compatiable layouts for Pry prompts
7 8 9 |
# File 'lib/icepick/config.rb', line 7 def main_layout @main_layout 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
7 8 9 |
# File 'lib/icepick/config.rb', line 7 def wait_layout @wait_layout end |