WhereCallables

Filter callable lists

Constructors

this
this(Callable[] callables)
Undocumented in source.

Members

Functions

anyOfAttributes
Callable[] anyOfAttributes(string[] attributes)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

Filter callables by attributes

@("test")
void test() { }

enum item = describeCallable!test;
enum items = [ item ];

items.where.anyOfAttributes(["other"]).length.should.equal(0);
items.where.anyOfAttributes(["other", "attributes"]).length.should.equal(0);
items.where.anyOfAttributes(["test"]).length.should.equal(1);

Meta