Skip to content

Commit

Permalink
Add README instructions for usage with equalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Aug 11, 2014
1 parent 365f47c commit 4063f9f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Expand Up @@ -133,6 +133,29 @@ class FlatExample
end
```

## Usage with equalizer

Adamanitum may be used with [equalizer](https://www.github.com/dkubb/equalizer)
as long as equalizer is included into the class first, eg:

```ruby
class Foo
include Equalizer.new(:foo)
include Adamantium
end
```

Another, less common form is to include all the modules in a single line. It is
important to note that ruby includes the modules in reverse order, starting
with the last module and working backwards, eg:

```ruby
class Foo
# equalizer will be mixed in first, then adamantium
include Adamantium, Equalizer.new(:foo)
end
```

## Credits

* Dan Kubb ([dkubb](https://github.com/dkubb))
Expand Down

0 comments on commit 4063f9f

Please sign in to comment.