Member method « Class « Ruby






1.Define a method to retrieve the value.
2.a simple demonstration of a class with two methods
3.implement an each method, and get these methods for "free":
4.Compare method
5.Add method to a variable only
6.Defining Methods within a Class