summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-27 04:47:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-27 04:47:30 +0000
commit18477557236646240da157ed7d53da4998d3fc35 (patch)
tree50deda162b31005be9c4e63461a4d7bc009f6952 /lib
parente6300774896d943115b3f51fa3489d3051f61eb4 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/final.rb2
-rw-r--r--lib/mkmf.rb2
-rw-r--r--lib/observer.rb8
3 files changed, 7 insertions, 5 deletions
diff --git a/lib/final.rb b/lib/final.rb
index fc17dce..cdffd94 100644
--- a/lib/final.rb
+++ b/lib/final.rb
@@ -2,7 +2,7 @@
# $Id$
# Copyright (C) 1998 Yukihiro Matsumoto. All rights reserved.
-# The ObjectSpace extention:
+# The ObjectSpace extension:
#
# ObjectSpace.define_finalizer(obj, proc=lambda())
#
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 72f0bfa..8ef5bfd 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1,4 +1,4 @@
-# module to create Makefile for extention modules
+# module to create Makefile for extension modules
# invoke like: ruby -r mkmf extconf.rb
require 'rbconfig'
diff --git a/lib/observer.rb b/lib/observer.rb
index b802dac..5928367 100644
--- a/lib/observer.rb
+++ b/lib/observer.rb
@@ -30,9 +30,11 @@ module Observable
@observer_state
end
def notify_observers(*arg)
- if @observer_peers and @observer_state
- for i in @observer_peers
- i.update(*arg)
+ if @observer_state
+ if @observer_peers
+ for i in @observer_peers
+ i.update(*arg)
+ end
end
@observer_state = FALSE
end