disu.se

EncodeClass

Namespace

Lookout

Ancestors
  1. Value

  2. Object

Encodes objects as UTF-8-encoded Strings. This is done by calling String with the object as the argument and then calling #encode on the result, if the result responds to it. This is primarily useful for compatibility between Ruby 1.8 and 1.9.

Constructor

initialize(object#to_s)#

Encodes object as an UTF-8-encoded String.

Instance Methods

callString#

Returns an UTF-8-encoded String representation of the object.