Sha256: 3f1f0c09060ba7a83487421d1eadf16112886953dcfd3eebfa7972bb8e531f0d

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

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.wait_layout = '{spaces} {separator} '
      self.name        = 'Icepick'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
icepick-0.2.0 lib/icepick/config.rb