|
You are here |
tenderlovemaking.com | ||
| | | | |
thepugautomatic.com
|
|
| | | | | I recently discovered the Ruby Module Builder pattern. It lets you pass in arguments to dynamically generate a module at include time: class Greeter < Module def initialize(name)... | |
| | | | |
zverok.space
|
|
| | | | | Just a quick reference post. | |
| | | | |
makandracards.com
|
|
| | | | | Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can do with it and found his blog post with a cool example. It allows you to inject some state into the module you are including elsewhere. Check it out! class AttributeAccessor < Module de... | |
| | | | |
zverok.space
|
|
| | | I am Ukrainian Rubyist from Kharkiv. There is still war in my country: a full-scale invasion that Russia started on Feb 24, continuing its 8-year-long hybr... | ||