Flowdock
method

addextend2soap

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::Mapping::Registry
addextend2soap(node, obj) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/mapping/registry.rb, line 521
  def addextend2soap(node, obj)
    return if obj.is_a?(Symbol) or obj.is_a?(Fixnum)
    list = (class << obj; self; end).ancestors - obj.class.ancestors
    unless list.empty?
      node.extraattr[RubyExtendName] = list.collect { |c|
        if c.name.empty?
          raise TypeError.new("singleton can't be dumped #{ obj }")
        end
        c.name
      }.join(" ")
    end
  end
Register or log in to add new notes.