Sha256: 583d95b418462fdf7791573df0a7c3c05318ddc046f064bef7944103036d278e
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>new (Todoist)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File rtodoist.rb, line 12</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">token</span>) <span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">check_connection</span>(<span class="ruby-value">2</span>, <span class="ruby-value str">'http://todoist.com'</span>) <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span>) <span class="ruby-identifier">raise</span> <span class="ruby-value str">'http://todoist.com not accessible. Program will now exit.'</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtodoist-0.0.2 | doc/classes/Todoist.src/M000001.html |