Permalink
Browse files

added description of add_translation

  • Loading branch information...
1 parent 8844dc8 commit 0f6c6d3888ea1ff5401a90dcff05ebab78b30b4d @cheezy committed Feb 15, 2013
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
@@ -92,7 +92,19 @@ Here is a list of the built-in methods:
| day_of_week | day_of_week_abbr |
-
+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
+
+ # can now use ~abc in my yml files
## Documentation

0 comments on commit 0f6c6d3

Please sign in to comment.