hello all
Im new to ruby and im just trying to see how i can instanciate an
object that is defined in a class file like myclass.rb then in another
file like start.rb i just call it like so newObj = myclass.new do i need
the include statement at the top? like include myclass.rb or mayby the
require statement? Thanks
Brent B. wrote:
hello all
Im new to ruby and im just trying to see how i can instanciate an
object that is defined in a class file like myclass.rb then in another
file like start.rb i just call it like so newObj = myclass.new do i need
the include statement at the top? like include myclass.rb or mayby the
require statement? Thanks
((this is a ruby related question, not a rails question, so rather than
use http://ruby-forum.com/forum/3 use http://ruby-forum.com/forum/4))