Sha256: db585e37861915c63e9b1194f081ea15e9538336ef0417c7ebd3e4baf7f0bb2a
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ernie' state = 0 # Just about the easiest example I could thing of. mod(:test) do fun(:zeronary) do :foo end fun(:unary) do |a| a end fun(:binary) do |a, b| a + b end fun(:ternary) do |a, b, c| a + b + c end fun(:set_state) do |x| state = x sleep 5 nil end fun(:get_state) do state end fun(:big) do |x| 'a' * x end fun(:cry) do raise "abandon hope!" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ernie-1.3.0 | test/handler.rb |
ernie-1.2.0 | test/handler.rb |
ernie-1.1.0 | test/handler.rb |