summaryrefslogtreecommitdiff
path: root/lib/shell/filter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shell/filter.rb')
-rw-r--r--lib/shell/filter.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb
index 4cf793a3b3..27c5534695 100644
--- a/lib/shell/filter.rb
+++ b/lib/shell/filter.rb
@@ -18,7 +18,6 @@ class Shell
#
class Filter
include Enumerable
- include Error
def initialize(sh)
@shell = sh # parent shell
@@ -47,7 +46,7 @@ class Shell
self.input = src
self
else
- Filter.Fail CantApplyMethod, "<", to.class
+ Shell.Fail Error::CantApplyMethod, "<", to.class
end
end
@@ -63,7 +62,7 @@ class Shell
when IO
each(){|l| to << l}
else
- Filter.Fail CantApplyMethod, ">", to.class
+ Shell.Fail Error::CantApplyMethod, ">", to.class
end
self
end
@@ -72,7 +71,7 @@ class Shell
begin
Shell.cd(@shell.pwd).append(to, self)
rescue CantApplyMethod
- Shell.Fail CantApplyMethod, ">>", to.class
+ Shell.Fail Error::CantApplyMethod, ">>", to.class
end
end