Sha256: 3f95b947406d1d4617152fbec8227044114ad94590f8fd095a838cc8ddedc8a9

Contents?: true

Size: 445 Bytes

Versions: 11

Compression:

Stored size: 445 Bytes

Contents

require 'rexml/document'

module Rake::Funnel::Extensions
  module REXML
    module Functions
      def lower_case(string)
        string.first.to_s.downcase
      end

      def matches(string, test)
        File.fnmatch?(test, string.first.to_s, File::FNM_CASEFOLD)
      end
    end
  end
end

module REXML
  module Functions
    class << self
      include Rake::Funnel::Extensions::REXML::Functions
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake-funnel-0.3.2.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.3.1.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.3.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.2.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.1.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.6.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.5.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.4.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.3.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.2.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.0.1.pre lib/rake/funnel/extensions/rexml.rb