Project

General

Profile

« Previous | Next » 

Revision 9a8f5f0a

Added by znz (Kazuhiro NISHIYAMA) over 4 years ago

Fix call-seq [ci skip]

encoding can be not only an encoding name, but also an Encoding object.

s = String.new('foo', encoding: Encoding::US_ASCII)
s.encoding # => #<Encoding:US-ASCII>