isPurine method

bool isPurine()

If the base contained purine, return true.

Implementation

bool isPurine() {
  return base == EnumBase.a || base == EnumBase.g || base == EnumBase.r;
}