adomokos / light-service

Series of Actions with an emphasis on simplicity.
MIT License
837 stars 67 forks source link

Extract function from executed macro #220

Closed adomokos closed 3 years ago

adomokos commented 3 years ago

Rubocop methodlength error is a good indication that the encapsulated logic in a method is too much. The first step of understanding the dependencies is to extract logic into a function, this is what I am doing with this commit.

adomokos commented 3 years ago

// cc @alitsiya and @gee-forr.