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

included

Methods included from Common::ToStringBase

#to_s_ext

Methods included from Common::Utils

address_banner, type

Instance Method Details

#display_stringObject



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_typeObject



9
10
11
# File 'lib/win32ole_pp/extentions/win32ole_param.rb', line 9

def display_type
  type = type(ole_type, ole_type_detail)
end

#qualifierObject



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