README.md in ernie-1.1.0 vs README.md in ernie-1.2.0

- old
+ new

@@ -49,16 +49,30 @@ port 9999. Example Handler --------------- +Using the DSL: + require 'ernie' mod(:calc) do fun(:add) do |a, b| a + b end end + +Using Ernie.expose: + + require 'ernie' + + module Calc + def add(a, b) + a + b + end + end + + Ernie.expose(:calc, Calc) Example BERT-RPC call for above example --------------------------------------- \ No newline at end of file