1. Home
  2. Computing & Technology
  3. Ruby

Method

By , About.com Guide

Definition:

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
Explore Ruby
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Glossary
  5. M - R
  6. Method

©2009 About.com, a part of The New York Times Company.

All rights reserved.