RubyGems Navigation menu

proxy_method 1.2.6

The purpose of this gem is to prevent directly running the inherited methods you choose to block at either the class or instance level, and instead do one of two things: run an alternative block which may or may not invoke the original method, or simply raise an error message. The error message can be customized. The original method can still be called under a different name. The entire object or class can return "unproxied" versions of themselves to preserve the original functionality. This was originally created to help enforce the use of interactors over directly calling ActiveRecord methods like create, save, and update. As with any metaprogramming, this gives you plenty of rope to hang yourself if you try to get too "clever". Treat this library like salt; use sparingly, because over time its cumulative effect will kill you :)

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.2.9 - January 11, 2020 (9.0 KB)
  2. 1.2.8 - January 10, 2020 (9.0 KB)
  3. 1.2.7 - January 09, 2020 (9.0 KB)
  4. 1.2.6 - January 08, 2020 (8.5 KB)
  5. 1.2.5 - January 07, 2020 (8.5 KB)
顯示所有版本(共 18)

擁有者:

推送者:

作者:

  • Jaime Bellmyer

SHA 256 總和檢查碼:

2f73e44d3fa465a6c6d08a3a3f32eecb24c8486e4b5c054ed19208c199196425

總下載次數 26,620

這個版本 1,512

授權:

MIT

Ruby 版本需求: >= 0

相關連結: