Sha256: d66b898c6199f11c15f7b439839d113741fe5c7f67381e9800dcb4b80b1b892f

Contents?: true

Size: 1.02 KB

Versions: 20

Compression:

Stored size: 1.02 KB

Contents

module Soybean
  class LiteralMappingRegistryCreator < WSDL::SOAP::LiteralMappingRegistryCreator

    def initialize(definitions, name_creator, modulepath, defined_const, cache)
      @cache = cache
      super(definitions, name_creator, modulepath, defined_const)
    end

    private

    def dump_entry(regname, var)
      if @cache.key?(var[:class])
        ''
      else
        @cache[var[:class]] = true
        "#{regname}.register(\n  " +
            [
                dump_entry_item(var, :class),
                dump_entry_item(var, :soap_class),
                dump_entry_item(var, :schema_name, :qname),
                dump_entry_item(var, :schema_type, :qname),
                dump_entry_item(var, :is_anonymous),
                dump_entry_item(var, :schema_basetype, :qname),
                dump_entry_item(var, :schema_qualified),
                dump_entry_item(var, :schema_element),
                dump_entry_item(var, :schema_attribute)
            ].compact.join(",\n  ") +
            "\n)\n"
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
soybean-2.5.3 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.5.2 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.5.1 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.5.0 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.4.3 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.4.2 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.4.1 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.4.0 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.3.0 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.2.2 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.2.1 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.2.0 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.5 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.4 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.3 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.2 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.1 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.1.0 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.0.1 lib/soybean/literal_mapping_registry_creator.rb
soybean-2.0.0 lib/soybean/literal_mapping_registry_creator.rb