Dot notation: handle 'class' and 'selector' methods