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

Instance Method Details

#display_stringObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/win32ole_pp/extentions/win32ole_param.rb', line 9

def display_string
  type = []
  type << "in" if input?
  type << "out" if output?
  type << "retval" if retval?
  type << "optional" if optional?
  if type.empty?
    "%s %s" % [ole_type, name]
  else
    "[%s] %s %s" % [type * ", ", ole_type, name]
  end
end