... more Ruby

For general discussion related FlowStone
Post Reply
unkargherth
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

... more Ruby

Post by unkargherth »

Sorry guys, probably is some stupid question, but

How to send a trigger from a Ruby component?
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: ... more Ruby

Post by MyCo »

output x,y

x is the output number, and y doesn't matter
unkargherth
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

Re: ... more Ruby

Post by unkargherth »

So sending any (non nil) output to a trigger sends the trigger? .... nice :)

Thanks MyCo
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: ... more Ruby

Post by MyCo »

you can also send nil... it doesn't matter. The "output" method itself sends the trigger. If you don't want to send trigger on the outputs, you have to write the value into @outs.
Post Reply