Skip to content
Browse files

fix documentation in kconv

  • Loading branch information...
1 parent f9cc04e commit 5ad5ef93dd1d285ef318acd64e7b768cca8b969c @Watson1978 Watson1978 committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 ext/nkf/lib/kconv.rb
View
8 ext/nkf/lib/kconv.rb
@@ -51,8 +51,8 @@ module Kconv
# call-seq:
# Kconv.kconv(str, to_enc, from_enc=nil)
#
- # Convert <code>str</code> to out_code.
- # <code>out_code</code> and <code>in_code</code> are given as constants of Kconv.
+ # Convert <code>str</code> to <code>to_enc</code>.
+ # <code>to_enc</code> and <code>from_enc</code> are given as constants of Kconv or Encoding objects.
def kconv(str, to_enc, from_enc=nil)
opt = ''
opt += ' --ic=' + from_enc.to_s if from_enc
@@ -199,8 +199,8 @@ class String
# call-seq:
# String#kconv(to_enc, from_enc)
#
- # Convert <code>self</code> to out_code.
- # <code>out_code</code> and <code>in_code</code> are given as constants of Kconv.
+ # Convert <code>self</code> to <code>to_enc</code>.
+ # <code>to_enc</code> and <code>from_enc</code> are given as constants of Kconv or Encoding objects.
def kconv(to_enc, from_enc=nil)
from_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
Kconv::kconv(self, to_enc, from_enc)

0 comments on commit 5ad5ef9

Please sign in to comment.
Something went wrong with that request. Please try again.