nes1983
nes1983

Reputation: 15746

How can you programatically add a class variable to a class in Pharo?

How can you programatically add a class variable to a class in Pharo? It should be in the class builder, that's where you can add instance variables to a class. But I don't see it.

Upvotes: 7

Views: 355

Answers (1)

Alex Jasmin
Alex Jasmin

Reputation: 39496

MyClass addClassVarNamed: 'MyClassVariable'

Upvotes: 9

Related Questions