Classes: Config, Message
"0.0.1"
7 8 9 10 11 12 13
# File 'lib/txtlocal.rb', line 7 def config @config ||= Config.new if block_given? yield @config end @config end
15 16 17
# File 'lib/txtlocal.rb', line 15 def reset_config @config = nil end
19 20 21 22 23
# File 'lib/txtlocal.rb', line 19 def send_message(message, recipients, options={}) msg = Txtlocal::Message.new(message, recipients, options) msg.send! msg end