lib/sms_tools.rb in smstools-0.0.1 vs lib/sms_tools.rb in smstools-0.1.0
- old
+ new
@@ -3,5 +3,17 @@
require 'sms_tools/gsm_encoding'
if defined?(::Rails) and ::Rails.version >= '3.1'
require 'sms_tools/rails/engine'
end
+
+module SmsTools
+ class << self
+ def use_gsm_encoding?
+ @use_gsm_encoding.nil? ? true : @use_gsm_encoding
+ end
+
+ def use_gsm_encoding=(value)
+ @use_gsm_encoding = value
+ end
+ end
+end