module Mobilyws
Constants
- SEND_MSG_RESPONSES
- UTF8_CHAR_ENCODE
I stole this nice hash from github.com/moh-alsheikh/mobilywscli
- VERSION
Public Class Methods
encode(message)
click to toggle source
TODO Freeze keys and values
# File lib/mobilyws.rb, line 182 def self.encode(message) encoded_message = "" message.each_char {|c| encoded_message << UTF8_CHAR_ENCODE.fetch(c, c) } encoded_message end