Method: Catlogic::Distribution#opposite

Defined in:
lib/catlogic/distribution.rb

#oppositeObject



9
10
11
12
13
14
15
16
# File 'lib/catlogic/distribution.rb', line 9

def opposite
  if self.label == 'distributed'
    opposite = Distribution.new('undistributed')
  elsif self.label == 'undistributed'
    opposite = Distribution.new('distributed')
  end
  return opposite
end