In Files

Parent

Methods

Class/Module Index [+]

Quicksearch

Object

Public Instance Methods

output(value) click to toggle source
output(connector, value)
output(connector, value, time)

Sends a value to a RubyEdit output connector. If only a value is given, it is sent to the first (uppermost) output. If a connector is given, this should be either an Integer (zero being the top output), or a String that matches the output's label.

When no time is given, the output is sent immediately. If a time is given the output is added to a queue, and will be output at the allotted time. Be careful when setting the time - it is an absolute time, counted in seconds, since the RubyEdit was created. So to schedule the event for a future time, you must add an offset to the current time given by the time method. You cannot give a time unless the connector is also specified. The event will be sent immediately if the given time is at or before the current time.

For example...

output "Hello"
#=> Sends "Hello" to the first output

output 1, "Hello"
#=> Sends "Hello" to the second output from the top.

output "greeting", "Hello"
#=> Sends "Hello" to an output labelled "greeting" - no action if this
#=> label does not exist.

output 1, "Hello", time + 0.5
#=> Sends "Hello" to the second output half a second from now.
# File Flowstone API.rb, line 220
def output()
  # DUMMY
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.