diff options
author | Nat Lasseter <Nat Lasseter user@4574.co.uk> | 2018-02-15 15:03:02 +0000 |
---|---|---|
committer | Nat Lasseter <Nat Lasseter user@4574.co.uk> | 2018-02-15 15:03:02 +0000 |
commit | 7602b8f0aca806dbb2d521c006f87d2e6d6753b0 (patch) | |
tree | 8d740ee3c33b66b0287f5f5a68893fd2e007aec0 /test.pr | |
parent | 638c11f67e3c8b9764fcc7e85fb9d9e8e0a26b1c (diff) |
New example and fix for variable looking not varibles.
Diffstat (limited to 'test.pr')
-rw-r--r-- | test.pr | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |