wconrad / Cute Print / Docs / Configuring
Configure location format
You can change the format which Kernel#ql uses to print the source location. By default, just the filename is printed, but you can cause the full path. to be printed instead.
Scenario: Write full path
- Given a file named "
example.rb" with:rubyrequire "cute_print" CutePrint.configure do |c| c.location_format = :path end ql 123 - Then stderr should be
/tmp/.../example.rb:7: 123
Scenario: Write filename
- Given a file named "
example.rb" with:rubyrequire "cute_print" CutePrint.configure do |c| c.location_format = :filename end ql 123 - Then stderr should be
example.rb:7: 123
Source: features/configuring/configure_position_format.feature at commit e8ebd2a4, Cute Print (MIT license).