Class File
In: lib/facet/file/split_all.rb
lib/facet/file/write.rb
Parent: Object

Copyright © 2005 George Moschovitis <gm@navel.gr>

Methods

split_all   write  

Public Class methods

Splits a file path into an array of individual path components. This differs from File.split, which divides the path into only two parts, directory path and basename.

  require 'facet/file/split_all'

  split_all("a/b/c") =>  ['a', 'b', 'c']

Dumps a string to a file.

             require 'facet/file/write'

             str = 'The content for the file'
             File.write('myfile.txt', str)

[Validate]