diff options
-rw-r--r-- | ext/win32ole/sample/olegen.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/sample/olegen.rb b/ext/win32ole/sample/olegen.rb index 4b088a774f..9398194cf1 100644 --- a/ext/win32ole/sample/olegen.rb +++ b/ext/win32ole/sample/olegen.rb @@ -70,8 +70,8 @@ class WIN32COMGen end if ts.empty? ts = 'VT_VARIANT' - elsif ts[-1] == ?| - ts += 'VT_VARIANT' + elsif ts.end_with?(?|) + ts += 'VT_VARIANT' end ts end |