Sha256: 9f04d41f49612cb6916e72ea0ddcb96da7c4434cc61003cd591dafbfaeeb16da

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

module Icepick
  class Config
    # Separator for the prompt
    attr_accessor :separator 

    # The mustache compatiable layouts for Pry prompts
    attr_accessor :main_layout, :wait_layout

    # Public: Create a new instance of the config with defaults
    #
    # Returns a new instance
    def initialize
      self.separator   = '>'.bold
      self.main_layout = '{line_num}. {context.colorize(:cyan)} {separator} '
      self.wait_layout = '{spaces} {separator} '
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
icepick-1.3.1 lib/icepick/config.rb
icepick-1.3.0 lib/icepick/config.rb
icepick-1.1.1 lib/icepick/config.rb
icepick-1.1.0 lib/icepick/config.rb