Module: WIN32OLE_PP::Extentions::Common::Utils
- Included in:
- PrettyPrintBase, ToStringBase
- Defined in:
- lib/win32ole_pp/extentions/common.rb
Class Method Summary collapse
Class Method Details
.address_banner(subname = nil) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/win32ole_pp/extentions/common.rb', line 8 def (subname = nil) if subname "%s:0x%x: %s" % [self.class, object_id << 1, subname] else "%s:0x%x" % [self.class, object_id << 1] end end |
.type(type, type_detail) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/win32ole_pp/extentions/common.rb', line 16 def type(type, type_detail) if type_detail.include?("PTR") "#{type}*" else type end end |