This Jackbox feature showcases an alternative way to refine classes,
that also illustrates some additional uses of our modular
closures/injectors. For this to happen, we rely once again on our trusty
method #lets. Take a look at this example code:
# Injector declaration
StringExtensions = injector :StringExtensions do
super + '++++'
# Jackbox Re-Classing
lets String do
str = String('boo')
str.to_s == 'boo++++'
String.new('bar).to_s == "bar"
For more details please visit: