Sha256: 658cd10b5387a3127f20aa7aaf757bbb01ee8a950a7311a1c0224157d113cd0b
Contents?: true
Size: 454 Bytes
Versions: 12
Compression:
Stored size: 454 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require 'ernie' module Ext @@state = 0 def zeronary :foo end def unary(a) a end def binary(a, b) a + b end def ternary(a, b, c) a + b + c end def set_state(x) @@state = x sleep 5 nil end def get_state @@state end def big(x) 'a' * x end def cry raise "abandon hope!" end end Ernie.expose(:ext, Ext)
Version data entries
12 entries across 12 versions & 2 rubygems