public
Description: Erlectricity exposes Ruby to Erlang and vice versa.
Homepage:
Clone URL: git://github.com/mojombo/erlectricity.git
erlectricity / examples / tinderl
name age message
..
file README.md Mon Apr 27 14:51:32 -0700 2009 better example readmes [mojombo]
file tinderl.erl Sun Apr 26 23:00:16 -0700 2009 ensure tinderl example works [mojombo]
file tinderl.rb Sun Apr 26 23:00:16 -0700 2009 ensure tinderl example works [mojombo]
examples/tinderl/README.md

This is a more advanced example of Erlectricity that shows how you can integrate with Campfire via the Ruby "tinder" gem.

$ cd examples/tinderl
$ erl
Erlang (BEAM) emulator version 5.6.4 [source] [smp:2] [async-threads:0] [kernel-poll:false]

Eshell V5.6.4  (abort with ^G)
1> c(tinderl).
{ok,tinderl}
2> tinderl:start("example.campfireapp.com", "tom@example.com", "secret", "My Room").
<0.38.0>
5> tinderl:speak("Hello, World!").
{speak,<0.31.0>,<<"Hello, World!">>}