Module: RubyTerraform::ValueEquality
- Included in:
- Models::Change, Models::KnownValue, Models::List, Models::Map, Models::OmittedValue, Models::OutputChange, Models::Path, Models::PathSet, Models::Plan, Models::ResourceChange, Models::UnknownValue
- Defined in:
- lib/ruby_terraform/value_equality.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
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 |
#hash ⇒ Object
11 12 13 |
# File 'lib/ruby_terraform/value_equality.rb', line 11 def hash [self.class, state].hash end |