module Docker::Equality

Public Instance Methods

==(other) click to toggle source
# File lib/docker/equality.rb, line 3
def ==(other)
  # this seems unconfident, but it is because I want to be able
  # to create containers with shortened ID's (for now)
  min = [id.length, other.id.length].min
  id[0...min] == other.id[0...min] 
end