lib/icepick/config.rb in icepick-0.2.0 vs lib/icepick/config.rb in icepick-1.1.0
- old
+ new
@@ -1,27 +1,18 @@
module Icepick
class Config
# Separator for the prompt
attr_accessor :separator
- # Whether or not to use colors and formatting
- attr_accessor :formatted
- alias :formatted? :formatted
-
# The mustache compatiable layouts for Pry prompts
attr_accessor :main_layout, :wait_layout
- # The prompt name
- attr_accessor :name
-
# Public: Create a new instance of the config with defaults
#
# Returns a new instance
def initialize
- self.separator = '>'
- self.formatted = true
- self.main_layout = '{line_num}. {name}@{context} {separator} '
+ self.separator = '>'.bold
+ self.main_layout = '{line_num}. {context.colorize(:cyan)} {separator} '
self.wait_layout = '{spaces} {separator} '
- self.name = 'Icepick'
end
end
end