Have you tried reading a Ruby tutorial before asking questions about it?

Try it.

2011/12/12, rubythemystery ruby <rubythemystery / gmail.com>:
> Hi,
>
> I have two classes say,
>
> Class One:
> ---------
>
> class WebClient
>
> include HTTParty
>
> headers 'text/xml'
> format :text
>
> def some(type)
> if type.eql? "data1"
> headers 'text/xml'
> format :text
> elsif type.eql? "data2"
> -------- here I need to call the method of another class Sample
> end
> end
>
> Class two:
> ---------
>
> class Sample < HTTParty::Parser
>
> def atom
> some funtion
> end
> end
>
> can someone help on this
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
-- Matma Rex