Sha256: 7b0a8a56f29f552c6f608cd1768d7991798540b88026c91dce2fb46a5101d9d7

Contents?: true

Size: 239 Bytes

Versions: 36

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true

module RubyTerraform
  module ValueEquality
    def ==(other)
      other.class == self.class && other.state == state
    end

    alias eql? ==

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ruby-terraform-1.9.0.pre.2 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.9.0.pre.1 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.13 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.12 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.11 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.10 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.9 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.8 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.7 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.6 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.5 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.4 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.3 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.2 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.8.0.pre.1 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.7.0 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.7.0.pre.19 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.7.0.pre.18 lib/ruby_terraform/value_equality.rb
ruby-terraform-1.7.0.pre.17 lib/ruby_terraform/value_equality.rb