Jump to content

Call an object method: Difference between revisions

→‎{{header|Ruby}}: renamed pre-existing method method.
(Added Wren)
(→‎{{header|Ruby}}: renamed pre-existing method method.)
Line 1,667:
 
# Instance method
my_instance.methoda_method(some_parameter)
 
# The parentheses are optional
my_instance.methoda_method some_parameter
 
# Calling a method with no parameters
1,149

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.