Class: Icepick::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/icepick/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#formattedObject 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_layoutObject

The mustache compatiable layouts for Pry prompts



11
12
13
# File 'lib/icepick/config.rb', line 11

def main_layout
  @main_layout
end

#nameObject

The prompt name



14
15
16
# File 'lib/icepick/config.rb', line 14

def name
  @name
end

#separatorObject

Separator for the prompt



4
5
6
# File 'lib/icepick/config.rb', line 4

def separator
  @separator
end

#wait_layoutObject

The mustache compatiable layouts for Pry prompts



11
12
13
# File 'lib/icepick/config.rb', line 11

def wait_layout
  @wait_layout
end