Top Level Namespace
Defined Under Namespace
Classes: Sendln
Instance Method Summary collapse
Instance Method Details
#smtp_config ⇒ Object
5 6 7 8 9 |
# File 'lib/sendln.rb', line 5 def smtp_config file = File.('~/.sendln') raise "No configuration file found! Please provide one at #{file}" unless File.exists? file @config ||= YAML::load(File.open(file)) end |