(self)
return self.has_prefix(project.path_to_example)
Returns `True` if the view's path is under the 'example' dir.
Returns `True` if the view's path is under the 'example' dir.
Returns True if the view s path is under the example dir .
def is_example(self):
        '''Returns `True` if the view's path is under the 'example' dir.
        '''
        assert self.path, 'view has not been saved yet'
        project = PubPackage.from_path(self.path)
        if not (project and project.path_to_example):
            return False
        return self.has_prefix(project.path_to_example)
def is_example ( self ) : assert self . path , 'view has not been saved yet' project = PubPackage . from_path ( self . path ) if not ( project and project . path_to_example ) : return False return self . has_prefix ( project . path_to_example )