public
Description: A new revision of Fuzed, the Erlang-based frontend for web apps. Check out the mailing list at http://groups.google.com/group/fuzed
Clone URL: git://github.com/KirinDave/fuzed.git
fuzed / rlibs / adder_node.rb
100644 20 lines (15 sloc) 0.325 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'chassis'
require 'rubygems'
require 'erlectricity'
require 'optparse'
require 'stringio'
 
 
# speller handler
class FakeHandler < Chassis
  kind "calculon"
 
  handle(:add, :arg1, :arg2) do |args|
    args[:arg1] + args[:arg2]
  end
  
  handle(:crash) do |args|
    raise "You asked me to crash, so I did."
  end
end