From: "Bartosz DziewoƄski" Date: 2011-12-13T06:03:19+09:00 Subject: Re: To Access One Class method from Another Have you tried reading a Ruby tutorial before asking questions about it? Try it. 2011/12/12, rubythemystery ruby : > 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