summaryrefslogtreecommitdiff
path: root/ext/win32ole/sample/olegen.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/sample/olegen.rb')
-rw-r--r--ext/win32ole/sample/olegen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/sample/olegen.rb b/ext/win32ole/sample/olegen.rb
index 6ef660326f..df6fe7adaa 100644
--- a/ext/win32ole/sample/olegen.rb
+++ b/ext/win32ole/sample/olegen.rb
@@ -230,7 +230,7 @@ class WIN32COMGen
v.visible? && v.variable_kind == 'CONSTANT'
}.each do |v|
io.print " "
- io.print v.name.sub(/^./){|c| c.upcase}
+ io.print v.name.sub(/^./){$&.upcase}
io.print " = "
io.puts v.value
end