curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Methods: Different Types of Method arguments in Ruby and how to use them is Missing

Open NewDev2005 opened this issue 7 months ago • 3 comments

Checks

Describe your suggestion

In the ruby methods lesson only two method arguments are discussed: Required arguments and optional arguments. It doesn't discuss anything about the variable and keyword arguments and i think these arguments are also worth mentioning in the lessons even though we might not use them as often as we use the required and optional arguments. I think this article does a very nice job in explaining all the types of method arguments. i hope the maintainers will consider adding this to the method lesson https://www.rubyguides.com/2018/06/rubys-method-arguments/

Path

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-methods

(Optional) Discord Name

Htmx

(Optional) Additional Comments

No response

NewDev2005 avatar Jun 12 '25 17:06 NewDev2005

Thanks @NewDev2005. It's like you said, they aren't things you use as often. We intentionally leave a lot of things out to keep lessons focused on whats practical.

That said, I thought we were covering keyword args somewhere. Either way, think this is a good resource that could be added to the Additional Resources section of that lesson.

KevinMulhern avatar Jun 12 '25 21:06 KevinMulhern

@KevinMulhern Alrighty!

NewDev2005 avatar Jun 13 '25 14:06 NewDev2005

looks like an easy one, i can squash this!

mathdebate09 avatar Jun 16 '25 18:06 mathdebate09

@mathdebate09 thanks! All yours!

wise-king-sullyman avatar Jun 26 '25 20:06 wise-king-sullyman