Sha256: 3af54df5b473904d4b6fd90704fbf7b07a195edf6e754ff7d9d951e5c2aa33a6
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
module MovieRenamer class Movie def initialize(filename,opts={}) opts = { :year => '', :director => '', :title => '', :part => '', :imdb =>''}.merge(opts) @year = opts[:year] @director = opts[:director] @title = opts[:title] @part = opts[:part] @imdb = opts[:imdb] @filename = filename end attr_accessor :year, :director, :title, :part, :imdb, :filename def == (movie) if @year == movie.year and @director == movie.director and @title == movie.title and @part == movie.part and @imdb == movie.imdb and @filename == movie.filename return true else return false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
movie-renamer-0.0.24 | lib/movie-renamer/movie.rb |
movie-renamer-0.0.23 | lib/movie-renamer/movie.rb |