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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to