wconrad / Cute Print / Docs / Inspect
Inspect with source
Kernel#q, if given a block, prints the source for the block and then the inspected result of running the block.
Scenario: Label and inspect an object
- Given a file with:
ruby
require "cute_print" q {1 + 2} - Then stderr should be
(1 + 2) is 3
Source: features/inspect/inspect_with_source.feature at commit e8ebd2a4, Cute Print (MIT license).