lib/core/facets/string.rb in facets-2.4.3 vs lib/core/facets/string.rb in facets-2.4.4

- old
+ new

@@ -1,37 +1,6 @@ -require 'facets/string/align' -require 'facets/string/bracket.rb' -require 'facets/string/camelcase.rb' -require 'facets/string/capitalized.rb' -require 'facets/string/chomp.rb' -require 'facets/string/cleave.rb' -require 'facets/string/divide.rb' -require 'facets/string/each_word.rb' -require 'facets/string/fold.rb' -require 'facets/string/interpolate.rb' -require 'facets/string/line_wrap.rb' -require 'facets/string/methodize.rb' -require 'facets/string/mscan.rb' -require 'facets/string/natcmp.rb' -require 'facets/string/nchar.rb' -require 'facets/string/pathize.rb' -require 'facets/string/range.rb' -require 'facets/string/rewrite.rb' -require 'facets/string/shatter.rb' -require 'facets/string/snakecase' -require 'facets/string/splice.rb' -require 'facets/string/subtract.rb' -require 'facets/string/tab.rb' -require 'facets/string/titlecase.rb' -require 'facets/string/to_re.rb' -require 'facets/string/to_time.rb' -require 'facets/string/words.rb' -require 'facets/string/xor.rb' - -# 1.9 -require 'facets/string/bytes.rb' -require 'facets/string/chars.rb' -require 'facets/string/lines.rb' -require 'facets/string/start_with.rb' -require 'facets/string/end_with.rb' -require 'facets/string/each_char.rb' +dir, base = *File.split(__FILE__) +base = base.chomp('.rb') +Dir[File.join(dir, base, '*')].each do |lib| + require "facets/#{base}/#{File.basename(lib)}" +end