Top Level Namespace
Defined Under Namespace
Modules: Swallow
Classes: Date, Dir, File, Regexp, Time
Instance Method Summary
collapse
Instance Method Details
#pipe(program, text) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/spamdetector.rb', line 4
def pipe(program, text)
IO.popen(program,"w") do |f|
f.print(text)
end
return $?>>8
end
|
#process(program, text) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/spamdetector.rb', line 11
def process(program, text)
IO.popen(program, "wr") do |f|
f.print(text)
return f.read
end
end
|