Skip to content

Commit

Permalink
fixups for awk
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Yeh authored and Howard Yeh committed Mar 6, 2009
1 parent 4118f5e commit 759ddc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion awk.rb
Expand Up @@ -45,7 +45,7 @@ def fs(fs)

def eval
self.instance_eval(&@beg_act) if @beg_act
@exe.each_ do |record|
@exe.each do |record|
@nr += 1
@a = record.split(@fs)
@nf = @a.length
Expand Down
4 changes: 0 additions & 4 deletions command.rb
Expand Up @@ -30,10 +30,6 @@ def exec_with(i,o,e)
return pid
end

def awk(fs=nil,&block)
Rubish::Awk.make(self,fs,&block)
end

def to_s
self.cmd
end
Expand Down
4 changes: 4 additions & 0 deletions executable.rb
@@ -1,5 +1,9 @@
class Rubish::Executable

def awk(fs=nil,&block)
Rubish::Awk.make(self,fs,&block)
end

class AbnormalExits < RuntimeError
attr_reader :statuses
def initialize(statuses)
Expand Down

0 comments on commit 759ddc7

Please sign in to comment.