class

FFF::MessageBus

Inherits Reference < Object

MessageBus — A message queue that manages TUI notifications. Supports multiple concurrent messages with auto-expiry. Replaces the old @error_msg / @error_expires pattern.

Constructors

Instance methods

clear

Clear all messages

Source
current

Get the most recent non-expired message (displayed in the TUI)

Source
error(text : String, duration : Time::Span = 3.seconds)

Convenience methods

Source
info(text : String, duration : Time::Span = 2.seconds)
Source
messages
Source
push(text : String, type : MessageType, duration : Time::Span = 2.seconds)

Push a new message onto the queue

Source
success(text : String, duration : Time::Span = 2.seconds)
Source
tick!

Remove expired messages

Source
warning(text : String, duration : Time::Span = 3.seconds)
Source