Sha256: 76fcf2f484ca75f1ee86b8ef5440a3b3f6c65685ba9be353fe0a120eafce56c6

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

# WSDL4R - XMLSchema minLength 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 MinLength < Info
  def initialize
    super
  end

  def parse_element(element)
    nil
  end

  def parse_attr(attr, value)
    case attr
    when ValueAttrName
      parent.minlength = 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/minlength.rb
soap4r-1.5.7 lib/wsdl/xmlSchema/minlength.rb