diff options
Diffstat (limited to 'lib/shell')
-rw-r--r-- | lib/shell/command-processor.rb | 2 | ||||
-rw-r--r-- | lib/shell/error.rb | 4 | ||||
-rw-r--r-- | lib/shell/filter.rb | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 79310359e6..0c65d3be36 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -277,7 +277,7 @@ class Shell when IO AppendIO.new(@shell, to, filter) else - Shell.Fail CanNotMethodApply, "append", to.class + Shell.Fail CantApplyMethod, "append", to.class end end diff --git a/lib/shell/error.rb b/lib/shell/error.rb index df5e669af6..d338b1c5d1 100644 --- a/lib/shell/error.rb +++ b/lib/shell/error.rb @@ -18,8 +18,8 @@ class Shell def_e2message TypeError, "wrong argument type %s (expected %s)" def_exception :DirStackEmpty, "Directory stack empty." - def_exception :CanNotDefine, "Can't define method(%s, %s)." - def_exception :CanNotMethodApply, "This method(%s) can't apply this type(%s)." + def_exception :CantDefine, "Can't define method(%s, %s)." + def_exception :CantApplyMethod, "This method(%s) does not apply to this type(%s)." def_exception :CommandNotFound, "Command not found(%s)." end end diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb index 727826b7c9..4cf793a3b3 100644 --- a/lib/shell/filter.rb +++ b/lib/shell/filter.rb @@ -47,7 +47,7 @@ class Shell self.input = src self else - Filter.Fail CanNotMethodApply, "<", to.class + Filter.Fail CantApplyMethod, "<", to.class end end @@ -63,7 +63,7 @@ class Shell when IO each(){|l| to << l} else - Filter.Fail CanNotMethodApply, ">", to.class + Filter.Fail CantApplyMethod, ">", to.class end self end @@ -71,8 +71,8 @@ class Shell def >> (to) begin Shell.cd(@shell.pwd).append(to, self) - rescue CanNotMethodApply - Shell.Fail CanNotMethodApply, ">>", to.class + rescue CantApplyMethod + Shell.Fail CantApplyMethod, ">>", to.class end end |