Skip to content

Commit

Permalink
Use config instead of c in configuration README section
Browse files Browse the repository at this point in the history
[Related to #11]
  • Loading branch information
gonzedge committed Jan 9, 2017
1 parent eeb1c45 commit 531abda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ You can configure those values by using `.config` like this:
```ruby
require 'rambling-trie'

Rambling::Trie.config do |c|
c.compressor = MyCustomCompressor.new
c.root_builder = lambda { MyCustomNode.new }
Rambling::Trie.config do |config|
config.compressor = MyCustomCompressor.new
config.root_builder = lambda { MyCustomNode.new }

c.readers.add :html, MyHtmlReader.new
c.readers.default = c.readers[:html]
config.readers.add :html, MyHtmlReader.new
config.readers.default = c.readers[:html]

c.serializers.add :json, MyJsonSerializer.new
c.serializers.default = c.serializers[:yml]
config.serializers.add :json, MyJsonSerializer.new
config.serializers.default = c.serializers[:yml]
end

# Create a trie or load one from disk and do things with it...
Expand Down

0 comments on commit 531abda

Please sign in to comment.