Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

How to properly use delays in a ruby module?

For general discussion related FlowStone

Re: How to properly use delays in a ruby module?

Postby Subquantum » Sun Oct 26, 2014 2:26 pm

Since I am new to ruby, I was thinking that ruby used selectors like in objective-c and also confusing this with select case statements in visual basic. After further reading I now understand that "@selector" provided in tulamide's code is just an instance variable and could have been named anything.
User avatar
Subquantum
 
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Re: How to properly use delays in a ruby module?

Postby tulamide » Sun Oct 26, 2014 9:28 pm

Subquantum wrote:After further reading I now understand that "@selector" provided in tulamide's code is just an instance variable and could have been named anything.

Exactly. The switch or selector is the whole code itself. Sorry, if this confused you, I just wanted to use names that are a bit more informative than the usual i, n, p and the like :D
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 21 guests