Module: Txtlocal
- Defined in:
- lib/txtlocal.rb,
lib/txtlocal/config.rb,
lib/txtlocal/message.rb,
lib/txtlocal/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.config ⇒ Object
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 |
.reset_config ⇒ Object
15 16 17 |
# File 'lib/txtlocal.rb', line 15 def reset_config @config = nil end |
.send_message(message, recipients, options = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/txtlocal.rb', line 19 def (, recipients, ={}) msg = Txtlocal::Message.new(, recipients, ) msg.send! msg end |