*Hi,
puts(hi) --> * hi --> returns "Heyyyy" but you mentioned like puts(hi).So it returns the nil for final puts which was added by you. Thanks On Tue, Aug 18, 2009 at 3:11 PM, shailesh <shaileshbt...@gmail.com> wrote: > > This is my module in a file named sunny.rb: > > Sunny.rb: > > module Sunny > def hi > puts("Heyyyy") > end > end > > and this is file sunny1.rb where I call sunny.rb : > > Sunny1.rb: > > require 'watir' > require'sunny.rb' > include Sunny > hi > puts(hi) > > when i execute this, this is what I get: > > >ruby sunny1.rb > Heyyyy > Heyyyy > nil > >Exit code: 0 > > > My question is what is this nil for ? It might be easy or a small > thing but I am not able to get the answer of this question. Thanks in > advance for the answer. > > > > > -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---