I hereby claim:
- I am dhaskew on github.
- I am askew (https://keybase.io/askew) on keybase.
- I have a public key ASDVjIGch3E2i3Kw8W44aTKiSYH50CVxIsAKry4fscqOkQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Define a function to find the hypotenuse of a right triangle with side lengths a and b | |
| def hypotenuse_right(a,b) | |
| return a**2 + b**2 | |
| end | |
| h = hypotenuse_right(1,2) | |
| puts h | |
| # What methods do strings have that symbols don't? Describe a few. What methods do symbols have that strings don't? |
| -- To receive the eventArgs parameter | |
| -- we wrap the script in an on run handler | |
| on run eventArgs | |
| -- every eventArgs record has a trigger property | |
| -- that describes the action that caused the script to be executed | |
| set thisTrigger to (trigger of eventArgs) | |