From: Arun Kumar Date: 2010-10-28T16:28:48+09:00 Subject: Re: Defining nested Method in single class Hi robert, Thanks for the quick reply.. I created a class with in class it showing Error like "class definition in method body", """""""""""If its is means, why not in methods ?""""""""""" 1. May be my question is wrong ? can u please tell me how to call method defined within method of class ? """"" def AdavanceConfuse.Class_method1 puts "this is class_method1" def AdavanceConfuse.class_method1_attribute_class_method puts "this is class_method1_attribute_class_method" end end """""" How to call the class_method1_attribute_class_method in the above code and how it internally ,the request will be handled in ruby ? 2. How i can access a class' method defined with in class ? Example: ======== class AdavanceConfuse class AnotherClass def AnotherClass.method1 puts "Class with in class's class method" end end end How to call the method "method1",how it internally ,the request will be handled in ruby ? Thanks Jak. -- Posted via http://www.ruby-forum.com/.