Check out example codes for "how ruby methods take in a hash of attributes". It will help you in understanding the concepts better.

Code Example 1

def create(name:, age:, gender:) #Main lesson on this line
	some_variable = SomeClass.new(name, age, gender)
    some_variable.save #save is an instance method undefined here
    some_variable
end

Learn ReactJs, React Native from akashmittal.com