class PrettyAncestors::Result
Public Instance Methods
pretty_print(q)
click to toggle source
# File lib/pretty_ancestors.rb, line 3 def pretty_print(q) q.group(1, '[', ']') { breaker = ->{ q.text ',' q.text q.newline q.text q.genspace.(q.indent) } q.seplist self, breaker, :each do |mod| q.pp mod end } end