123456789_123456789_123456789_123456789_123456789_

Module: RBS::Test::Guaranteed::Inspect

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rbs/test/guaranteed.rb

Constant Summary

Instance Method Summary

Instance Method Details

#inspect

[ GitHub ]

  
# File 'lib/rbs/test/guaranteed.rb', line 17

def inspect
  string = "<#{self.class.name}:"

  instance_variables.each_with_index do |variable, index|
    string.concat ', ' unless index.zero?
    string.concat "#{variable}: #{guaranteed_inspect(instance_variable_get(variable))}"
  end

  string.concat '>'
end