{"id":824,"date":"2022-08-30T15:07:47","date_gmt":"2022-08-30T15:07:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/rubinius-does-not-recognize-methods-in-the-file-class-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:47","modified_gmt":"2022-08-30T15:07:47","slug":"rubinius-does-not-recognize-methods-in-the-file-class-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/rubinius-does-not-recognize-methods-in-the-file-class-collection-of-common-programming-errors\/","title":{"rendered":"Rubinius does not recognize methods in the File class-Collection of common programming errors"},"content":{"rendered":"<p>I have a project that has alot of file manipulation. I am trying out Rubinius because I need to be able to compile the code. When I try to run code that includes<\/p>\n<pre><code>if Dir.exist?(file_path)\n<\/code><\/pre>\n<p>I get this error:<\/p>\n<pre><code>NoMethodError: undefined method `exist?' on Dir (Class)\n<\/code><\/pre>\n<p>Is there something I need to include to get this recognized? Btw, I have also tried Dir.exists? since it is an alias, and that didn&#8217;t work either. Is the issue that this method didn&#8217;t exist in 1.8.7? I can&#8217;t seem to find a list of<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:47:42. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have a project that has alot of file manipulation. I am trying out Rubinius because I need to be able to compile the code. When I try to run code that includes if Dir.exist?(file_path) I get this error: NoMethodError: undefined method `exist?&#8217; on Dir (Class) Is there something I need to include to get [&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-824","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/824","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=824"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/824\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}