K
King Maker
Hello frends,
I write the method on one file and call this method on another file but
the problem is they not find the method of the another file
in first file i write:file_name=first.rb
def a()
puts "hello world"
end
in second file i write:file_name=second.rb
reqire 'd:\test\first.rb'
a()
its correct or not
I write the method on one file and call this method on another file but
the problem is they not find the method of the another file
in first file i write:file_name=first.rb
def a()
puts "hello world"
end
in second file i write:file_name=second.rb
reqire 'd:\test\first.rb'
a()
its correct or not