Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added description of add_translation

  • Loading branch information...
commit b36d0814ff7fca59e92cfd3c29f1f0b490e8ec7e 1 parent 0f6c6d3
@cheezy authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 README.md
View
19 README.md
@@ -95,16 +95,17 @@ Here is a list of the built-in methods:
If you wish to add your own built-in methods you can simply pass a module
to _DataMagic_ and all of the methods will be available.
-
- module MyData
- def abc
- 'abc'
- end
- end
-
- DataMagic.add_translator MyData
+````ruby
+module MyData
+ def abc
+ 'abc'
+ end
+end
+
+DataMagic.add_translator MyData
- # can now use ~abc in my yml files
+# can now use ~abc in my yml files
+````
## Documentation
Please sign in to comment.
Something went wrong with that request. Please try again.