Skip to content

0.4.0

Compare
Choose a tag to compare
@joelmoss joelmoss released this 06 Dec 13:51
· 5 commits to master since this release

Changes

Bang and predicate methods can now be defined using an underscore as the method name. This is now the preferred way.

namespace :tweet do
  def _?
    # ...
  end

  def _!
    # ...
  end
end

And you can now also use the name of the defined namespace:

namespace :tweet do
  def tweet?
    # ...
  end

  def tweet!
    # ...
  end
end

Full Changelog: v0.3.1...v0.4.0