class Spectator::TagNodeFilter

Overview

Filter that matches nodes with a given tag.

Defined in:

spectator/tag_node_filter.cr

Constructors

Instance Method Summary

Instance methods inherited from class Spectator::NodeFilter

===(node) ===, includes?(node) : Bool includes?

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.new(tag : String, value : String? = nil) #

Creates the filter. The tag indicates which tag the node must have in its metadata.


[View source]

Instance Method Detail

def includes?(node) : Bool #

Checks whether the node satisfies the filter.


[View source]