Module: RubyTerraform::ValueEquality

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



5
6
7
# File 'lib/ruby_terraform/value_equality.rb', line 5

def ==(other)
  other.class == self.class && other.state == state
end

#hashObject



11
12
13
# File 'lib/ruby_terraform/value_equality.rb', line 11

def hash
  [self.class, state].hash
end