summaryrefslogtreecommitdiff
path: root/ext/win32ole/sample
diff options
context:
space:
mode:
authora_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-11 03:58:07 +0000
committera_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-11 03:58:07 +0000
commite1db3605fd8b21aa9b5277114d18bdd21f54c832 (patch)
tree112f1d31887931402cea6d78e63c466c966fdbec /ext/win32ole/sample
parenta4cbd6412aa8b16893db47ff18243bb4d5371899 (diff)
* ext/win32ole/sample/olegen.rb: Fix typo
* ext/openssl/ossl_asn1.c: [DOC] Fix typo * lib/webrick/accesslog.rb: ditto * template/yarvarch.ja: ditto s/recieve/receive/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/sample')
-rw-r--r--ext/win32ole/sample/olegen.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/win32ole/sample/olegen.rb b/ext/win32ole/sample/olegen.rb
index 4ec576c..aa0288d 100644
--- a/ext/win32ole/sample/olegen.rb
+++ b/ext/win32ole/sample/olegen.rb
@@ -8,7 +8,7 @@ require 'win32ole'
class WIN32COMGen
def initialize(typelib)
@typelib = typelib
- @reciever = ""
+ @receiver = ""
end
attr_reader :typelib
@@ -87,7 +87,7 @@ class WIN32COMGen
end
def generate_method_body(method, disptype, types=nil)
- " ret = #{@reciever}#{disptype}(#{method.dispid}, [" +
+ " ret = #{@receiver}#{disptype}(#{method.dispid}, [" +
generate_args(method).gsub("=nil", "") +
"], [" +
generate_argtypes(method, types) +
@@ -303,10 +303,10 @@ STR
if klass.ole_type == "Class" &&
klass.guid &&
klass.progid
- @reciever = "@dispatch."
+ @receiver = "@dispatch."
define_class(klass, io)
else
- @reciever = ""
+ @receiver = ""
define_module(klass, io)
end
generate_constants(klass, io)