Module: WIN32OLE_PP::Extentions::Common::PrettyPrint
- Included in:
- PrettyPrintBase
- Defined in:
- lib/win32ole_pp/extentions/common.rb
Class Method Summary collapse
Class Method Details
.property_group(q, banner, props, value_block = nil) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/win32ole_pp/extentions/common.rb', line 20 def property_group(q, , props, value_block = nil) value_block ||= lambda {|q,v| q.pp v } q.group(2, "#<#{}", '>') { q.seplist(props, lambda { q.text "," }) {|prop| k, v = prop q.breakable q.text k q.text '=' q.group(1) { q.breakable '' value_block.call(q, v) } } } end |