Instance Method

Edit this Page

An instance method is a method available to any instances of a given class.

They are defined within a class using def. Documentation uses the # to indicate an instance method; i.e. Array#map