Sha256: c36cc05355e46e517eef3656b28b8785b4fde76164ccfe137104670e2f5c2a6d

Contents?: true

Size: 599 Bytes

Versions: 89

Compression:

Stored size: 599 Bytes

Contents

module Terraspace::Terraform::RemoteState
  class Unresolved
    def to_a
      []
    end

    def to_ary
      []
    end

    def to_s
      "(unresolved)" # always returned as part of first unresolved processing pass
    end
    alias_method :to_str, :to_s # ERB requires to_str

    def to_f
      0.0
    end

    def to_i
      0
    end

    def nil?
      true
    end

    def inspect
      format("#<%s:0x%x>", self.class, object_id)
    end

    def method_missing(*_args, &_block)
      self
    end

    def respond_to?(_message, _include_private = false)
      true
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
terraspace-0.5.3 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.5.2 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.5.1 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.5.0 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.4.4 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.4.3 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.4.2 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.4.1 lib/terraspace/terraform/remote_state/unresolved.rb
terraspace-0.4.0 lib/terraspace/terraform/remote_state/unresolved.rb