Module: WIN32OLE_PP::Extentions::WIN32OLE::PrettyPrint
- Includes:
- Common::PrettyPrint, Common::Utils
- Defined in:
- lib/win32ole_pp/extentions/win32ole.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Common::PrettyPrint
Methods included from Common::Utils
Class Method Details
.ole_properties ⇒ Object
31 32 33 |
# File 'lib/win32ole_pp/extentions/win32ole.rb', line 31 def ole_properties ole_get_methods.select{|e| e.params.empty? }.sort_by{|e| e.name } end |
Instance Method Details
#pretty_print(q) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/win32ole_pp/extentions/win32ole.rb', line 20 def pretty_print(q) props = ole_properties.map{|e| [e.name, self[e.name]] rescue nil }.compact property_group(q, (ole_obj_help.name), props, lambda {|q,v| if ::WIN32OLE === v q.text v.to_s else q.pp v end }) end |