how use method of class in another class?
===

Hello I use such code for verification. Result of this code must be added to Repot, which is another class. Here i use one of methdods of class Report  - addtoReport. 

    class Text_pos
    def initialize(text1, object1)
    @text1=text1
    if $ie.contains_text(@text1)
    puts("Test for " + @object1 + " passed")
    @r.addtoReport(@testReport, "check " + @object1, "PASSED")
    end
    end
    end

Than i run my test i get error - 

    in `initialize': undefined method `addtoReport' for nil:NilClass (NoMethodError)
On the begining of test I initialize report file

    require 'watir-classic\CLReport.rb'

    @r = CLReport.new()
    @testReport = @r.createReport('E:\Reports_watir\Company')

How can i use method addtoReport in class Text_pos