contracts.ruby
contracts.ruby copied to clipboard
Performance: Try out ruby 2 feature prepend when available for decorating
And see if it improves performance even further than alias_method
Plus:
- could be improved: https://github.com/egonSchiele/contracts.ruby/blob/master/lib/contracts.rb#L243 - this line does unnecessary array copy
- https://github.com/egonSchiele/contracts.ruby/blob/master/lib/contracts.rb#L265 -
size.times.each