@classmethod
def format_block(cls, block_desc):
    """Check block type and delegate to correct formatter"""
    if block_desc['block_type'] is 'file':
        return cls.format_file_header(block_desc)
    raise ValueError('Undefined block type:', block_desc['block_type'])
