Class: IO

Inherits:
Object
  • Object
show all
Defined in:
lib/text_tunnel/backport.rb

Class Method Summary collapse

Class Method Details

.write(name, string) ⇒ Object



4
5
6
# File 'lib/text_tunnel/backport.rb', line 4

def self.write(name, string)
  open(name, "wb") { |f| f.write string }
end