Method: Enumerable#qp
- Defined in:
- lib/jinx/helpers/pretty_print.rb
#qp(opts = nil) ⇒ String
Prints this Enumerable with a filter that calls qp on each item. Non-collection Enumerable classes override this method to delegate to Object#qp.
Unlike Object#qp, this implementation accepts the Object#pp_s options. The options are used to format this Enumerable, but are not propagated to the enumerated items.
121 122 123 |
# File 'lib/jinx/helpers/pretty_print.rb', line 121 def qp(opts=nil) wrap { |item| item.qp }.pp_s(opts) end |