Skip to content

Commit

Permalink
Static variable would be shared for all subclasses of Service. Fixed.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.unwire.dk/svnruby/handsoap/trunk@2461 0766824d-1b24-0410-8b38-d1198a962fe6
  • Loading branch information
unwire\tkn committed Apr 21, 2009
1 parent 8390587 commit a8cdaae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/handsoap/service.rb
Expand Up @@ -107,8 +107,9 @@ def self.uri
def self.get_mapping(name)
@mapping[name] if @mapping
end
@@instance = {}
def self.instance
@@instance ||= self.new
@@instance[self.to_s] ||= self.new
end
def self.method_missing(method, *args)
if instance.respond_to?(method)
Expand Down

0 comments on commit a8cdaae

Please sign in to comment.