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-0.8.3 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.8.2 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.8.1 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.8.0 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.7.1 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.7.0 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.6.4 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.6.3 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.6.2 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.6.1 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.6.0 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.10 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.9 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.8 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.7 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.6 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.5 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.4 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.3 lib/kuber_kit/extensions/inspectable.rb
kuber_kit-0.5.2 lib/kuber_kit/extensions/inspectable.rb