13 ms·
So if I take a sample out of your Matsuri repo, how does this get changed as an "Overridables": https://github.com/shopappsio/matsuri/blob/f966480380b685d34e7c1
by jayjohnson 10y ago
So if I take a sample out of your Matsuri repo, how does this get changed as an "Overridables": https://github.com/shopappsio/matsuri/blob/f966480380b685d34e7c161fbb89ad55505cf571/lib/matsuri/kubernetes/service.rb#L6-L13 https://github.com/shopappsio/matsuri/blob/f966480380b685d34...
- hosh 10y agolet() is define a memoized method. When you inherit or include that module into a new class, you can redefine that same let() and the new class will use the redefined method instead of what is inherited. You can do that with any of the let() that gets defined. This lets you use as much or as little of the shared code that you want.
- hosh 10y agoBy the way, if you want to talk over email, feel free to drop me a line at talktohosh at gmail dot com.