1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.




Method: A subroutine or function associated with a class or object. Methods possess all of the properties of functions (parameters, return values) but are implemented in a different way. Ruby follows the "message passing" paradigm as opposed to the "function call" paradigm used by languages such as C++ and Java. In Ruby, methods may also exist outside of any class (be "naked"). Naked methods are considered public methods of the "main" object.

Also Known As: Function, member function
  1. About.com
  2. Technology
  3. Ruby
  4. Glossary
  5. M - R
  6. Method

©2014 About.com. All rights reserved.