On Wed, Jan 30, 2013 at 2:58 PM, Arup Rakshit <[email protected]> wrote:
> Hi,
>
>
> I am confused with the below Dir class methods:
>
> Dir::exist?
> Dir::::exists?

That is a syntax error.  I guess you mean Dir::exists?.

> Can anyone help me here to understand the difference between them with
> an simple example?

Why do you assume there is a difference?  Did you read the documentation?  Hint:

$ diff -U5 <(ri -T Dir::exist?) <(ri -T Dir::exists?)
--- /dev/fd/63  2013-01-30 15:30:24.000000000 +0100
+++ /dev/fd/62  2013-01-30 15:30:24.000000000 +0100
@@ -1,6 +1,6 @@
-= Dir::exist?
+= Dir::exists?

 (from ruby core)
 ------------------------------------------------------------------------------
   File.directory?(file_name)   ->  true or false



Kind regards

robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- 
[email protected] | 
https://groups.google.com/d/forum/ruby-talk-google?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruby-talk-google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to