lib/smshelper/message.rb in smshelper-0.2.0 vs lib/smshelper/message.rb in smshelper-0.2.1
- old
+ new
@@ -9,10 +9,10 @@
@sender = attributes[:sender]
is_gsm(@text) ? (@utf_8 = false) : (@utf_8 = true)
end
def is_gsm(text)
- dl = Smshelper::Languagetools::Charset.instance
+ dl = Smshelper::Languagetools::Charset.new
lang = dl.is_gsm(text)
end
# def to_hex
# @text = @text.unpack('U*').collect {|x| sprintf '%02X', x}.join