Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'ernie' | ||
|
||
module Test | ||
# Add two numbers together | ||
def add(a, b) | ||
a + b | ||
end | ||
|
||
# Return the given number of bytes | ||
def bytes(n) | ||
'x' * n | ||
end | ||
|
||
# Sleep for +sec+ and then return :ok | ||
def slow(sec) | ||
sleep(sec) | ||
:ok | ||
end | ||
|
||
# Throw an error | ||
def error | ||
raise "abandon hope!" | ||
end | ||
end | ||
|
||
Ernie.expose(:test, Test) |