instance method
Gem::SafeMarshal::Visitors::ToRuby#formatted_stack
formatted_stack
lib/rubygems/safe_marshal/visitors/to_ruby.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/safe_marshal/visitors/to_ruby.rb, line 365
def formatted_stack
formatted = []
@stack[0, @stack_idx].each do |e|
if e.is_a?(Integer)
if formatted.last == "ivar_"
formatted[-1] = "ivar_#{e}"
else
formatted << "[#{e}]"
end
else
formatted << e
end
end
formatted
end
No documentation available