Skip to content

vgsantoniazzi/turnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Turnt

Test if an attribute was setted.

Getting Started

From rubygems:

gem install turnt

Gemfile

gem "turnt"

Usage

How to use

class Organization
  include Turnt

  attr_accessor :name, :employes
end

So you can call:

tux = Organization.new
tux.has_name? # => false
tux.has_employes? # => false

Now, I will set values to name

tux = Organization.new
tux.name = "Tux!"
tux.has_name? # => true
tux.has_employes? # => false

This works with methods!

Contributing

I ❤️ Open source!

Follow github guides for forking a project

Follow github guides for contributing open source

Code Status

Build Status

License

Gem is released under the MIT license.

About

turnt — A deprecated attribute checker for ruby.

Resources

Stars

Watchers

Forks

Languages