charlock_holmes-jruby 0.1.1-java → 0.1.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/charlock_holmes/converter.rb +2 -2
- data/lib/charlock_holmes/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -2,11 +2,11 @@ module CharlockHolmes
|
|
2
2
|
module Converter
|
3
3
|
extend self
|
4
4
|
|
5
|
-
def convert(string, from, to)
|
5
|
+
def convert(string, from, to, options={})
|
6
6
|
raise TypeError.new("string cannot be nil") unless string
|
7
7
|
raise TypeError.new("from cannot be nil") unless from
|
8
8
|
raise TypeError.new("to cannot be nil") unless to
|
9
|
-
string.encode(to, from)
|
9
|
+
string.encode(to, from, options)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|