README.md in windcharger-0.1.0 vs README.md in windcharger-0.2.0
- old
+ new
@@ -15,10 +15,12 @@
## Usage
Declare methods as attributes by extending `Windcharger::Attributes` and preceding methods with `attribute`:
```ruby
+require 'windcharger'
+
class MyTransformer
extend Windcharger::Attributes
attribute
def foo; end
@@ -33,9 +35,11 @@
```
This isn’t very useful on its own, so include `Windcharger::HashTransformer` to get the `transform` method:
```ruby
+require 'windcharger'
+
class MyTransformer
extend Windcharger::Attributes
include Windcharger::HashTransformer
attribute