Skip to content

v0.2.0

Compare
Choose a tag to compare
@esotericpig esotericpig released this 23 Oct 12:16
· 9 commits to master since this release

Highlights

This is a major departure from the previous version (v0.1.0) by not extending the core (monkey-patching) Module by default.

Instead, you should update your code to extend AttrBool::Ext:

require 'attr_bool'

class BananaHammock
  extend AttrBool::Ext
  
  attr_reader? :the_todd
end

The above is recommended for shared libraries.

However, if you wish to continue imitating the previous version, simply require the new attr_bool/core_ext.

This is great for scripts and/or apps, but also important for legacy code that used v0.1.0.

require 'attr_bool/core_ext'

class BananaHammock
  attr_reader? :the_todd
end