Sha256: f395b3b90b0befef220442f1b5928ced527688afe3afcf4f3d6bd2ac1da3c1e4

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

require 'erb'
require 'fileutils'

# Facets Core
require 'facets/kernel/ask'
require 'facets/hash/rekey'
require 'facets/dir/multiglob'
require 'facets/file/rootname'
require 'facets/file/split_root'
require 'facets/module/basename'
require 'facets/string/tab'
require 'facets/string/pathize'
require 'facets/string/modulize'
require 'facets/string/methodize'

# Facets More
require 'facets/ostruct'
require 'facets/pathname'

# ARE THESE NEEDED?
#require 'facets/yaml' # for to_yamlfrag
#require 'facets/string/snakecase'
#require 'facets/string/camelcase'
#require 'sow/openext'

class String

  def to_list
    split(/[:;\n]/).collect{ |e| e.strip }
  end

end

# NOTE: These are now in Facets.

=begin
module File

  #
  def split_root(path)
    path_re = Regexp.new('[' + Regexp.escape(File::Separator + %q{\/}) + ']')
    path.split(path_re, 2)
  end

end
=end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sow-0.5 lib/sow/core_ext.rb
sow-0.4.0 lib/sow/core_ext.rb