Module: RBS::Test::Guaranteed::Inspect
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/rbs/test/guaranteed.rb |
Constant Summary
-
EQUAL =
private
# File 'lib/rbs/test/guaranteed.rb', line 7::BasicObject.instance_method(:equal?)
-
INSPECT =
private
# File 'lib/rbs/test/guaranteed.rb', line 8::Kernel.instance_method(:inspect)
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