class attribute now accepts array of strings and/or conditional objects
updated docs