Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "Set"
- class Vorlesung
- attr_reader :name
- def initialize(name)
- @name = name
- end
- def eql?(other) return true if self.equal?(other) return false if self.class != other.class return self.name.eql?(other.name)
- end
- def to_s
- return "#{self.class} #{name.to_s}"
- end
- def inspect
- return to_s
- end
- end
Add Comment
Please, Sign In to add comment