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

.append(path, text) ⇒ String

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

.write(path, text) ⇒ String

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