Skip to content
Adds Valimisms to your ruby
Ruby
Find file
Pull request Compare This branch is 9 commits ahead of SSDany:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README.md
Rakefile
valim.gemspec

README.md

Adds Valimisms to your ruby

def code_is_awesome
  confirm
end

For more advanced usage of valim, you might try:

class User < ActiveRecord::Base
  # stuff here
end

(User.count > 5).confirm / deny? # => confirm

Don't be stupid

class User < ActiveRecord::Base
  def have_at_least_x_users(x)
    facepalm if x < 0
    (count >= x).confirm / deny?
  end
end
Something went wrong with that request. Please try again.