name method

String name()

Implementation

String name() {
  return toString().split('.').last;
}