lib/savon.rb in savon-0.9.9 vs lib/savon.rb in savon-0.9.10

- old
+ new

@@ -2,14 +2,22 @@ require "savon/config" require "savon/client" require "savon/model" module Savon - extend Config + extend self - # Yields this module to a given +block+. Please refer to the - # <tt>Savon::Config</tt> module for configuration options. - def self.configure - yield self if block_given? + def client(*args) + Client.new(*args) end + + def configure + yield config + end + + def config + @config ||= Config.default + end + + attr_writer :config end