diff options
Diffstat (limited to 'src/movie_library.coffee')
| -rw-r--r-- | src/movie_library.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/movie_library.coffee b/src/movie_library.coffee index 69af878..5b77972 100644 --- a/src/movie_library.coffee +++ b/src/movie_library.coffee @@ -20,6 +20,10 @@ Enumerable = results.push(item) if predicate(item) results + all: (specification) -> + @find_all (movie) -> + specification.matches(movie) + moduleKeywords = ['extended', 'included'] class Module @@ -46,10 +50,6 @@ module.exports = class MovieLibrary extends Module for movie in @movies visitor(movie) - find_all_movies_by_pixar: -> - @find_all (movie) => - movie.studio == Studio.Pixar - find_movies_by_pixar_or_disney: -> @find_all (movie) => movie.studio == Studio.Pixar || movie.studio == Studio.Disney |
