aboutsummaryrefslogtreecommitdiff
path: root/test.pr
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter user@4574.co.uk>2018-02-15 15:03:02 +0000
committerNat Lasseter <Nat Lasseter user@4574.co.uk>2018-02-15 15:03:02 +0000
commit7602b8f0aca806dbb2d521c006f87d2e6d6753b0 (patch)
tree8d740ee3c33b66b0287f5f5a68893fd2e007aec0 /test.pr
parent638c11f67e3c8b9764fcc7e85fb9d9e8e0a26b1c (diff)
New example and fix for variable looking not varibles.
Diffstat (limited to 'test.pr')
-rw-r--r--test.pr11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.pr b/test.pr
index 77dfb27..e82209b 100644
--- a/test.pr
+++ b/test.pr
@@ -35,3 +35,14 @@ varity(_, _) is
end
varity(1)
varity(1,2)
+
+iffy(true, this, _) is
+ this.call
+end
+iffy(false, _, that) is
+ that.call
+end
+thisser = Proc.new { puts "This" }
+thatter = Proc.new { puts "That" }
+iffy(4>3, thisser, thatter)
+iffy(3>4, thisser, thatter)