Passing Arguments
Learn how to pass arguments to a method in Ruby!
Extra information needed…
Sometimes an object needs a little bit of extra information in order to do what you ask for.
For example, the class String
defines the method delete
which returns
another String with some of the characters deleted. In order to do so, of
course, it needs to know which characters we’d like ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy