{"id":7038,"date":"2014-05-17T00:23:56","date_gmt":"2014-05-17T00:23:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/rubyhardwayex9-uninitialized-constant-paragraph-collection-of-common-programming-errors\/"},"modified":"2014-05-17T00:23:56","modified_gmt":"2014-05-17T00:23:56","slug":"rubyhardwayex9-uninitialized-constant-paragraph-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/rubyhardwayex9-uninitialized-constant-paragraph-collection-of-common-programming-errors\/","title":{"rendered":"Ruby(HardWay(ex9)) &lt;&lt; uninitialized constant PARAGRAPH-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m doing Ruby the Hard Way (ex9) -&gt; http:\/\/ruby.learncodethehardway.org\/book\/ex9.html<\/p>\n<p>Why can it not find the constant PARAGRAPH?<\/p>\n<p>ERROR =&gt;:<\/p>\n<pre><code>$ ruby ex9.rb\nex9.rb:9: uninitialized constant PARAGRAPH (NameError)\n<\/code><\/pre>\n<p>CODE (my input):<\/p>\n<pre><code># Here's some new strange stuff, remember type it exactly.\n\ndays = \"Mon Tue Wed Thu Fri Sat Sun\"\nmonths = \"Jan\\n\\Feb\\nMar\\nApr\\nMay\\nJun\\nJul\\nAug\"\n\nputs = \"Here are the days: \", days\nputs = \"Here are the months: \", months\n\nputs<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m doing Ruby the Hard Way (ex9) -&gt; http:\/\/ruby.learncodethehardway.org\/book\/ex9.html Why can it not find the constant PARAGRAPH? ERROR =&gt;: $ ruby ex9.rb ex9.rb:9: uninitialized constant PARAGRAPH (NameError) CODE (my input): # Here&#8217;s some new strange stuff, remember type it exactly. days = &#8220;Mon Tue Wed Thu Fri Sat Sun&#8221; months = &#8220;Jan\\n\\Feb\\nMar\\nApr\\nMay\\nJun\\nJul\\nAug&#8221; puts = &#8220;Here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7038","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7038"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7038\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}