DEV Community

Discussion on: When do you create a function or method?

 
codevault profile image
Sergiu Mureşan

So just one extra file where you put all functions (or methods in this case) related to that class?

Thread Thread
 
revskill10 profile image
Truong Hoang Dung

my_modules.rb

def function1
end

def function2
end