Page 1 of 1
Ruby basic examples
Posted: Wed Mar 13, 2019 7:38 pm
by gvalletto
Here I put a scheme with small Ruby examples for beginners (like me...). You can add anything related.
Thanks to @Tulamide by his help.
Re: Ruby basic examples
Posted: Wed Mar 13, 2019 11:13 pm
by RJHollins
Thanks gvalletto ... this one worked for me.
This is a helpful idea for many of us not experienced doing programing often.
With my latest little project, I leaned more to using RUBY for particular functions needed.
With that, I spent most my time scanning several RUBY sites for syntax details ... particularly those that relate to
FS version of RUBY. I get stuck on some of the basics, but once I get going, it gets better.
What's amazing is how powerful RUBY brings to the design compared to assembling PRIMITIVEs.
Maybe I can pull some of my basic RUBY routines to add to this.
Thanks again.
Re: Ruby basic examples
Posted: Wed Mar 13, 2019 11:53 pm
by gvalletto
Your wellcome. Any collaboration of anybody will be good for all of us... Another benefit of those schemes is to bring ready library so no to have to type code from scratch, so it save work time.
Also gurus are wellcome

Re: Ruby basic examples
Posted: Thu Mar 14, 2019 1:07 am
by Nickateenbeats
Here is some more Ruby code snippets, i didn't write them but im sure some of you could find these useful.
Re: Ruby basic examples
Posted: Fri Mar 15, 2019 11:13 pm
by gvalletto
Hi again!
This is the Ruby Sample and Hold found in the User Guide of FS (page 143):

- S&H User Guide.JPG (21.28 KiB) Viewed 11514 times
And this is a simplification that I made:

- S&H.JPG (30.81 KiB) Viewed 11514 times
It works fine here... what do you think about? Any risk to use it?