Single-line method rule