Sha256: 6d85889c143bab73a67cf2ad9b4097b252d2c6f3c7cca25575626b38d50c5f7a

Contents?: true

Size: 252 Bytes

Versions: 104

Compression:

Stored size: 252 Bytes

Contents

module KuberKit::Extensions::Inspectable
  def inspect
    data = {}
    instance_variables.each do |variable|
      data[variable.to_s.gsub('@', '').to_sym] = instance_variable_get(variable)
    end

    "#{self.class.to_s}<#{data.inspect}>"
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
kuber_kit-1.3.8 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.7 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.8 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.6 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.7 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.5 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.4 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.6 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.3 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.2 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.5 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.1 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.3.0 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.4 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.2.7 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.2.6 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.2.5 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.2.4 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.2.2 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-1.1.2 lib/kuber_kit/extensions/inspectable.rb