Sha256: 1d2fc75ebf71c088c3f70b72cf3a6cddb2b6d176f6d17a575c68153696689378

Contents?: true

Size: 494 Bytes

Versions: 23

Compression:

Stored size: 494 Bytes

Contents

require 'rexml/document'

module Rake
  module Funnel
    module 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
  end
end

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rake-funnel-0.21.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.20.2 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.20.1 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.20.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.19.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.18.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.17.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.16.1 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.16.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.15.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.14.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.13.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.12.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.11.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.10.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.9.1.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.9.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.8.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.7.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.6.1.pre lib/rake/funnel/extensions/rexml.rb