method

check_restriction

ruby latest stable - Class: WSDL::XMLSchema::SimpleType

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

check_restriction(value)
private

No documentation available.

# File lib/wsdl/xmlSchema/simpleType.rb, line 64
  def check_restriction(value)
    unless @restriction.valid?(value)
      raise XSD::ValueSpaceError.new("#{@name}: cannot accept '#{value}'")
    end
  end