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

Version Path
ernie-2.5.2 test/sample/ext.rb
ernie-2.5.1 test/sample/ext.rb
ernie-2.5.0 test/sample/ext.rb
ernie-2.4.0 test/sample/ext.rb
ernie-2.3.0 test/sample/ext.rb
ernie-2.2.1 test/sample/ext.rb
schleyfox-ernie-2.2.3 test/sample/ext.rb
schleyfox-ernie-2.2.2 test/sample/ext.rb
schleyfox-ernie-2.2.1 test/sample/ext.rb
ernie-2.2.0 test/sample/ext.rb
ernie-2.1.0 test/sample/ext.rb
ernie-2.0.0 test/sample/ext.rb