-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_config.rb
40 lines (35 loc) · 1.79 KB
/
example_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# frozen_string_literal: true
Scryglass.configure do |config|
## Display
# config.tab_length = 2 # Default: 2
# config.tree_view_key_string_clip_length = 200 # Default: 200
# config.tree_view_value_string_clip_length = 500 # Default: 500
# config.dot_coloring = true # Default: true
## UX
# config.cursor_tracking = [:flexible_range, :dead_center][0] # Default: [0]
# config.lenses = [ # Custom lenses can easily be added as name+lambda hashes! Or comment some out to turn them off.
# { name: 'Pretty Print (`pp`)',
# lambda: ->(o) { Hexes.capture_io(char_limit: 20_000) { pp o } } },
# { name: 'Amazing Print (`ap`)',
# lambda: ->(o) { Hexes.capture_io(char_limit: 20_000) { ap o } } }, # This has colors!
# { name: 'Inspect (`.inspect`)',
# lambda: ->(o) { Hexes.capture_io(char_limit: 20_000) { puts o.inspect } } },
# { name: 'Yaml Print (`y`)',
# lambda: ->(o) { Hexes.capture_io(char_limit: 20_000) { require 'yaml' ; y o } } }, # OR: `puts o.to_yaml`
# { name: 'Puts (`puts`)',
# lambda: ->(o) { Hexes.capture_io(char_limit: 20_000) { puts o } } },
# { name: 'Method Showcase',
# lambda: ->(o) { Scryglass::LensHelper.method_showcase_for(o, char_limit: 20_000) } },
# ]
## AmazingPrint defaults, if the user has not set their own:
# AmazingPrint.defaults ||= {
# index: false, # (Don't display array indices).
# raw: true, # (Recursively format instance variables).
# }
# See https://github.com/amazing-print/amazing_print
## Building ActiveRecord association sub-rows:
# config.include_empty_associations = true # Default: true
# config.include_through_associations = false # Default: false
# config.include_scoped_associations = false # Default: false
# config.show_association_types = true # Default: true
end