Method: Color::RGB::JP::Base::Encode.encode_to
- Defined in:
- lib/color/rgb/jp/base/encode.rb
.encode_to(to, from, value) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/color/rgb/jp/base/encode.rb', line 10 def encode_to(to, from, value) return nil if value.nil? return value if to.nil? return value if from.nil? return value if from == to return Iconv.iconv(to, from, value)[0] end |