How call function from other class(self created) in ruby program

let I have 2 diff. program code at C drive: A.rb and B.rb
! A.rb is
class A
  def a
    puts "Hello, I am in A"
  end
end

!B.rb is

class B
  def b
    puts "I am in B"
  end
end

Know i want to call object of Class A of code A.rb in B.rb.
So how can import Class A in B.what is syntax of importing.

require 'A'

Cheers

robert

···

2009/9/24 RAJU <chilljar06@yahoo.com>:

let I have 2 diff. program code at C drive: A.rb and B.rb
! A.rb is
class A
def a
puts "Hello, I am in A"
end
end

!B.rb is

class B
def b
puts "I am in B"
end
end

Know i want to call object of Class A of code A.rb in B.rb.
So how can import Class A in B.what is syntax of importing.

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