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
License
Gem is released under the MIT license.