RubyGems Navigation menu

betterobject 1.0.0

This gem installs several class methods to Object which in turn generates both class and instance methods but only when you are ready. In order to prevent name pollution, you have the ability to manage the generators to pick alternate names if you prefer. After scouring the RubyGems site, some of the better Class upgrades are included here as well as some of my own. The gem creates the backbone upon which future upgrades should be forthcoming. As a teaser, some of the generators presently include: obj.local_methods, obj.inherited_methods, obj.in?, COBJ.comes_from?, COBJ.derives_from?, COBJ.define_presence_of, obj.find_def. This first release installs 14 generators. Calling `Object.better_install_all` will install all of the generators. You can also generate a subset by calling `Object.better_install :generator_name` or `Object.better_install array_of_gen_names`. The generator names are also the method names which can be renamed by calling `Object.better_rename(old_name, new_name)`; this must be done before you generate the method.

Gemfile:
=

安装:
=

版本列表:

  1. 1.2.0 January 12, 2018 (20.0 KB)
  2. 1.1.0 January 04, 2018 (19.5 KB)
  3. 1.0.0 January 01, 2018 (17.5 KB)
  4. 0.1.0 December 30, 2017 (17.0 KB)

Development 依赖 (4):

bundler ~> 1.11
byebug >= 5.0.0
rake ~> 10.0
rspec ~> 3.0

所有者:

作者:

  • Bryan Colvin

SHA 256 校验和:

=

下载总量 8,721

这个版本 2,013

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 0

链接: