class LavinMQ::MQTT::TopicTree(TEntity)

Defined in:

lavinmq/mqtt/topic_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def [](topic : String) : TEntity #

[View source]
def [](topic : StringTokenIterator) : TEntity #

[View source]
def []?(topic : String) : TEntity | Nil #

[View source]
def []?(topic : StringTokenIterator) : TEntity | Nil #

[View source]
def delete(topic : String) #

[View source]
def delete(topic : StringTokenIterator) #

[View source]
def each(filter : String, &blk : String, TEntity -> _) #

[View source]
def each(filter : StringTokenIterator, &blk : String, TEntity -> _) #

[View source]
def each(&blk : String, TEntity -> _) #

[View source]
def empty? #

[View source]
def insert(topic : String, entity : TEntity) : TEntity | Nil #

[View source]
def insert(topic : StringTokenIterator, entity : TEntity) : TEntity | Nil #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def size #

[View source]