Sha256: cd3e108f8526bf5de520885bdddaa2e3465eb013b4b1fc705ee261c8b051a2f8
Contents?: true
Size: 905 Bytes
Versions: 1
Compression:
Stored size: 905 Bytes
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>valid? (XMLProver::Datatypes)</title> <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body bgcolor="white"> <pre><span class="cmt"># File datatypes.rb, line 113</span> <span class="kw">def</span> valid?(dtype, value) validity = <span class="kw">true</span> <span class="cmt"># assume cdata, so true</span> <span class="kw">if</span> @regexps.has_key?(dtype) <span class="kw">if</span> <span class="kw">not</span> md = @regexps[dtype].match(value.to_s) validity = <span class="kw">false</span> <span class="kw">end</span> <span class="kw">end</span> <span class="kw">return</span> validity <span class="kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega-0.3.1 | pub/xml/xmlproof/rdoc/classes/XMLProver/Datatypes.src/M000016.html |