How to properly use delays in a ruby module?

For general discussion related FlowStone
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?

Post by Subquantum »

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.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

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

Post by tulamide »

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)
Post Reply