lib/departure/option.rb in departure-4.0.1 vs lib/departure/option.rb in departure-5.0.0

- old
+ new

@@ -22,14 +22,14 @@ # Compares two options # # @param [Option] # @return [Boolean] - def ==(another_option) - name == another_option.name + def ==(other) + name == other.name end - alias :eql? :== + alias eql? == # Returns the option's hash # # @return [Fixnum] def hash @@ -63,10 +63,10 @@ # # @return [String] def value_as_string if value.nil? '' - elsif value.include?("=") + elsif value.include?('=') " #{value}" else "=#{value}" end end