Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajm188/helicopter
Turn ruby classes into helicopter parents
https://github.com/ajm188/helicopter
Last synced: 4 days ago
JSON representation
Turn ruby classes into helicopter parents
- Host: GitHub
- URL: https://github.com/ajm188/helicopter
- Owner: ajm188
- License: mit
- Created: 2015-03-14T22:30:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T23:40:08.000Z (almost 10 years ago)
- Last Synced: 2024-04-26T08:42:01.166Z (10 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Helicopter
Helicopter turns your classes into [helicopters](http://en.wikipedia.org/wiki/Helicopter_parent), allowing them to keep track of their children.
Helicopter only makes classes track their direct children.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'helicopter'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install helicopter
## Usage
```ruby
require 'helicopter'class Foo
extend Helicopter
endclass Bar < Foo
endFoo.subclasses #=> [Bar]
```