Sha256: 787aba628de87c503072c2220198e649630f6125b50e198338c7e3ff623a8452

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

# WSDL4R - XMLSchema length definition for WSDL.
# Copyright (C) 2000-2007  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 Length < Info
  def initialize
    super
  end

  def parse_element(element)
    nil
  end

  def parse_attr(attr, value)
    case attr
    when ValueAttrName
      parent.length = Integer(value.source)
    end
  end
end


end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soap4r-1.5.6 lib/wsdl/xmlSchema/length.rb
soap4r-1.5.7 lib/wsdl/xmlSchema/length.rb