Class: IO

Inherits:
Object show all
Defined in:
lib/tagen/core/io.rb

Overview

Additional Method list


  • `#fd` _alias from fileno_

Class Method Summary (collapse)

Class Method Details

+ (String) append(path, text)

a convient function to append text.

use open(path, "a"){|f| f.write(text)}

Parameters:

Returns:



26
# File 'lib/tagen/core/io.rb', line 26

def self.append(path, text) open(path, "a"){|f| f.write(text)} end

+ (String) write(path, text)

a convient function to write text.

use open(path, "w"){|f| f.write(text)}

Parameters:

Returns:



17
# File 'lib/tagen/core/io.rb', line 17

def self.write(path, text) open(path, "w"){|f| f.write(text)} end