Hello, Reader ^^! Back again with source code. This time is a basic syntax Function in Ruby programming language. This source code is to show how to do Function statement in Ruby language. Here's the template:
function <FunctionName>(<input1>,...,<inputN>:<value-type>) return <value-type> is
begin
<Statement>
return <value>;
end <FunctionName>;
Note: <input1>,...,<inputN>:<value-type> is optional, only use it if there is input required in the function
Okay, that's all I can say. Thank you for reading ^^!
Download/View Source Code
- Dropbox
- Dropbox (Repository)
- GitHub
- GitHub (Repository)
begin
<Statement>
return <value>;
end <FunctionName>;
Note: <input1>,...,<inputN>:<value-type> is optional, only use it if there is input required in the function
Okay, that's all I can say. Thank you for reading ^^!
Download/View Source Code
- Dropbox
- Dropbox (Repository)
- GitHub
- GitHub (Repository)
No comments:
Post a Comment