module TextTube::Baby

The original. Maybe. I haven't checked.

Constants

VERSION

Public Class Methods

load_all_filters(filters=nil) click to toggle source

Require all the filters. The `map` is there to show the result of this and show which libs were required (if so desired). @return [Array<String,TrueClass>]

# File lib/texttube/baby.rb, line 9
def self.load_all_filters filters=nil
        filters ||= File.join __dir__, "baby/*.rb"
        Dir.glob( filters )
                 .reject{|name| name.end_with? "version.rb" }
                 .map{|filter| 
                         tf = require filter
                         [File.basename(filter, ".rb").gsub("_",""), tf]
                 }
end