Class: Pry::Command::Ls::Config

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pry/commands/ls/config.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  heading_color: :bright_blue,
  public_method_color: :default,
  private_method_color: :blue,
  protected_method_color: :blue,
  method_missing_color: :bright_red,
  local_var_color: :yellow,
  pry_var_color: :default,            # e.g. _, pry_instance, _file_
  instance_var_color: :blue,          # e.g. @foo
  class_var_color: :bright_blue,      # e.g. @@foo
  global_var_color: :default,         # e.g. $CODERAY_DEBUG, $eventmachine_library
  builtin_global_color: :cyan,        # e.g. $stdin, $-w, $PID
  pseudo_global_color: :cyan,         # e.g. $~, $1..$9, $LAST_MATCH_INFO
  constant_color: :default,           # e.g. VERSION, ARGF
  class_constant_color: :blue,        # e.g. Object, Kernel
  exception_constant_color: :magenta, # e.g. Exception, RuntimeError
  unloaded_constant_color: :yellow,   # Constant still in .autoload? state
  separator: "  ",
  ceiling: [Object, Module, Class]
}.freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Forwardable

def_private_delegators

Constructor Details

#initialize(config) ⇒ Config

Returns a new instance of Config.



44
45
46
# File 'lib/pry/commands/ls/config.rb', line 44

def initialize(config)
  @config = config
end

Class Method Details

.defaultObject



48
49
50
# File 'lib/pry/commands/ls/config.rb', line 48

def self.default
  new(DEFAULT_OPTIONS.dup)
end