Module: WIN32OLE_PP::Extentions::WIN32OLE_PARAM::SmartToString
- Includes:
- Common::ToStringBase, Common::ToStringHook
- Defined in:
- lib/win32ole_pp/extentions/win32ole_param.rb
Instance Method Summary collapse
Methods included from Common::ToStringHook
Methods included from Common::ToStringBase
Methods included from Common::Utils
Instance Method Details
#display_string ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/win32ole_pp/extentions/win32ole_param.rb', line 19 def display_string q = qualifier if q.empty? "%s %s" % [display_type, name] else "[%s] %s %s" % [q * ", ", display_type, name] end end |
#display_type ⇒ Object
9 10 11 |
# File 'lib/win32ole_pp/extentions/win32ole_param.rb', line 9 def display_type type = type(ole_type, ole_type_detail) end |
#qualifier ⇒ Object
13 14 15 16 17 |
# File 'lib/win32ole_pp/extentions/win32ole_param.rb', line 13 def qualifier k = %W(in out retval optional) v = [input?, output?, retval?, optional?] k.zip(v).select{|e| e[1]}.map{|e| e[0]} end |