Sha256: c74a5e7fbcb1ac82feb669c2a83d2fde77414ce57bddbaa52ae8d9010b79d59f

Contents?: true

Size: 150 Bytes

Versions: 14

Compression:

Stored size: 150 Bytes

Contents

module EncodingHelper
  def encode(string)
    return string unless string.respond_to?(:force_encoding)
    string.force_encoding("UTF-8")
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
faye-0.8.11 spec/encoding_helper.rb
face-faye-0.8.9 spec/encoding_helper.rb
faye-0.8.9 spec/encoding_helper.rb
faye-0.8.8 spec/encoding_helper.rb
faye-0.8.6 spec/encoding_helper.rb
faye-0.8.5 spec/encoding_helper.rb
faye-0.8.4 spec/encoding_helper.rb
faye-0.8.3 spec/encoding_helper.rb
faye-0.8.2 spec/encoding_helper.rb
_bushido-faye-0.8.2 spec/encoding_helper.rb
_bushido-faye-0.8.1 spec/encoding_helper.rb
bushido-faye-0.8.1 spec/encoding_helper.rb
faye-0.8.1 spec/encoding_helper.rb
faye-0.8.0 spec/encoding_helper.rb