summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-20 03:30:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-20 03:30:59 +0000
commitc9dd4823d98141754842c0b356b141d94ba36604 (patch)
treef2b25b637c22571cfc5c1eed76ee62b19520b47f /lib/irb
parent772cc7a4f212fa3249f88c98b19645beb7f3d199 (diff)
downloadruby-c9dd4823d98141754842c0b356b141d94ba36604.tar.gz
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/notifier.rb8
-rw-r--r--lib/irb/output-method.rb2
-rw-r--r--lib/irb/xmp.rb2
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb
index fdfcdd2dbc..d20679da4a 100644
--- a/lib/irb/notifier.rb
+++ b/lib/irb/notifier.rb
@@ -25,7 +25,7 @@ module IRB
end
module_function :def_notifier
- class AbstructNotifier
+ class AbstractNotifier
def initialize(prefix, base_notifier)
@prefix = prefix
@base_notifier = base_notifier
@@ -72,7 +72,7 @@ module IRB
end
end
- class CompositeNotifier<AbstructNotifier
+ class CompositeNotifier<AbstractNotifier
def initialize(prefix, base_notifier)
super
@@ -93,7 +93,7 @@ module IRB
def level_notifier=(value)
case value
- when AbstructNotifier
+ when AbstractNotifier
@level_notifier = value
when Integer
l = @notifiers[value]
@@ -107,7 +107,7 @@ module IRB
alias level= level_notifier=
end
- class LeveledNotifier<AbstructNotifier
+ class LeveledNotifier<AbstractNotifier
include Comparable
def initialize(base, level, prefix)
diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb
index 4201523a45..9cccda1c6a 100644
--- a/lib/irb/output-method.rb
+++ b/lib/irb/output-method.rb
@@ -1,5 +1,5 @@
#
-# output-method.rb - optput methods used by irb
+# output-method.rb - output methods used by irb
# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb
index 1a58026f45..bcef964020 100644
--- a/lib/irb/xmp.rb
+++ b/lib/irb/xmp.rb
@@ -75,7 +75,7 @@ class XMP
if @encoding and exps.encoding != @encoding
enc = Encoding.compatible?(@exps.join("\n"), exps)
if enc.nil?
- raise Encoding::CompatibilityError, "Encoding in which the passed exression is encoded is not compatible to the preceding's one"
+ raise Encoding::CompatibilityError, "Encoding in which the passed expression is encoded is not compatible to the preceding's one"
else
@encoding = enc
end