Class: IO
Overview
Additional Method list
-
‘#fd` _alias from fileno_
Class Method Summary collapse
-
.append(path, text) ⇒ String
a convient function to append text.
-
.write(path, text) ⇒ String
a convient function to write text.
Class Method Details
.append(path, text) ⇒ String
a convient function to append text.
use open(path, "a"){|f| f.write(text)}
26 |
# File 'lib/tagen/core/io.rb', line 26 def self.append(path, text) open(path, "a"){|f| f.write(text)} end |
.write(path, text) ⇒ String
a convient function to write text.
use open(path, "w"){|f| f.write(text)}
17 |
# File 'lib/tagen/core/io.rb', line 17 def self.write(path, text) open(path, "w"){|f| f.write(text)} end |