Sha256: 002b5e5d5911382bc3fcaa4bd1aab70825b27c5e3f1070646d32db5474265323

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

# frozen_string_literal: true

require 'rexml/document'

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

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

module REXML
  module Functions
    extend Rake::Funnel::Extensions::REXML::Functions

    Rake::Funnel::Extensions::REXML::Functions.public_instance_methods.each do |method|
      singleton_method_added(method)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake-funnel-0.24.0 lib/rake/funnel/extensions/rexml.rb
rake-funnel-0.23.0 lib/rake/funnel/extensions/rexml.rb