lib/rake/funnel/extensions/rexml.rb in rake-funnel-0.22.3 vs lib/rake/funnel/extensions/rexml.rb in rake-funnel-0.23.0
- old
+ new
@@ -6,14 +6,14 @@
module Funnel
module Extensions
module REXML
module Functions
def lower_case(string)
- string.first.to_s.downcase
+ string(string).downcase
end
def matches(string, test)
- File.fnmatch?(test, string.first.to_s, File::FNM_CASEFOLD)
+ File.fnmatch?(test, string(string), File::FNM_CASEFOLD)
end
end
end
end
end