charlock_holmes-jruby 0.1.1-java → 0.1.2-java
Sign up to get free protection for your applications and to get access to all the features.
- 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
|