Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
end

class Bar < Foo
end

Foo.subclasses #=> [Bar]
```