Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vgsantoniazzi/turnt
turnt — A deprecated attribute checker for ruby.
https://github.com/vgsantoniazzi/turnt
Last synced: about 2 months ago
JSON representation
turnt — A deprecated attribute checker for ruby.
- Host: GitHub
- URL: https://github.com/vgsantoniazzi/turnt
- Owner: vgsantoniazzi
- Created: 2014-02-28T00:15:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T16:51:27.000Z (about 9 years ago)
- Last Synced: 2024-05-02T01:56:31.240Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Welcome to Turnt
Test if an attribute was setted.
## Getting Started
From rubygems:
```ruby
gem install turnt
```Gemfile
```ruby
gem "turnt"
```## Usage
How to use
```ruby
class Organization
include Turntattr_accessor :name, :employes
end
```So you can call:
```ruby
tux = Organization.new
tux.has_name? # => false
tux.has_employes? # => false
```Now, I will set values to name
```ruby
tux = Organization.new
tux.name = "Tux!"
tux.has_name? # => true
tux.has_employes? # => false
```This works with methods!
## Contributing
I :heart: Open source!
[Follow github guides for forking a project](https://guides.github.com/activities/forking/)
[Follow github guides for contributing open source](https://guides.github.com/activities/contributing-to-open-source/#contributing)
## Code Status
[![Build Status](https://travis-ci.org/vgsantoniazzi/turnt.svg?branch=master)](https://travis-ci.org/vgsantoniazzi/turnt)
## License
Gem is released under the [MIT license](http://opensource.org/licenses/MIT).