Skip to content

SSDany/valim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Adds Valimisms to your ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages