Parcourir la source

Updated section on creating an adapter

Andrew Kane il y a 7 ans
Parent
commit
e54ef0c428
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -497,7 +497,7 @@ data_sources:
 
 Create an adapter for any data store with:
 
-```
+```ruby
 class FooAdapter < Blazer::Adapters::BaseAdapter
   # code goes here
 end
@@ -505,7 +505,7 @@ end
 Blazer.register_adapter "foo", FooAdapter
 ```
 
-See the [Presto adapter](https://github.com/ankane/blazer/blob/master/lib/blazer/adapters/presto_adapter.rb) for a good example.
+See the [Presto adapter](https://github.com/ankane/blazer/blob/master/lib/blazer/adapters/presto_adapter.rb) for a good example. Then use:
 
 ```yml
 data_sources: