Is it possible to get the current stack level in Ruby?
I am currently using caller.size , which is ok but does not look native
caller.size
caller.size is exactly what you want, as it is pretty standard, widely implemented and gives you the number of frames on the stack. This is a native feature on MRI and most other interpreters.
Source: https://habr.com/ru/post/1398971/More articles:User and administrator logout through development and testing through RSPEC - ruby-on-rails-3erlang: now to timestamp and vice versa - timestampJsf: what is the bean area for a two page page? - scopeThe main graph disables y-axis scaling, scrolling - objective-cExtract url of previous page in html? - htmlCheck switch with ExtJS - javascriptHow can I get the value of the HtmlGenericControl attribute? - htmlRetrieving all subject attribute values ββin a certificate - c ++Why is node.js memory leak when restarting redis - node.jsHow to find the previous month in vb6 or in vba? - vbaAll Articles