Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created August 21, 2009 15:21
Show Gist options
  • Save manlycode/172095 to your computer and use it in GitHub Desktop.
Save manlycode/172095 to your computer and use it in GitHub Desktop.
module WSDL
module XMLSchema
class SimpleType < Info
private
def check_restriction(value)
unless @restriction.valid?(value) || @name.to_s =~ /(enum_creative_third_party_types|enum_ym_numbers_difference)/
raise XSD::ValueSpaceError.new("#{@name}: cannot accept '#{value}'")
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment