Sha256: 285392cef958eb538b3c495abe5fd0474c815e29018e42cdd2aa8e04286af2e4

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

# WSDL4R - XMLSchema enumeration definition for WSDL.
# Copyright (C) 2004  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.

# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
# redistribute it and/or modify it under the same terms of Ruby's license;
# either the dual license version in 2003, or any later version.


require 'wsdl/info'


module WSDL
module XMLSchema


class Enumeration < Info
  def initialize
    super
  end

  def parse_element(element)
    nil
  end

  def parse_attr(attr, value)
    case attr
    when ValueAttrName
      parent.enumeration << value.source
      value.source
    end
  end
end


end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruby_on_ruby-0.0.1 vendor/javascripts/emscripted-ruby/lib/wsdl/xmlSchema/enumeration.rb
soap4r-1.5.5.20061022 lib/wsdl/xmlSchema/enumeration.rb