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.6.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.5.0.pre lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.4.0.pre lib/rake/funnel/extensions/rexml.rb