Method: Twig::Runtime::LoopContext#depth0

Defined in:
lib/twig/runtime/loop_context.rb

#depth0Integer

Returns The depth starting from 0.

Returns:

  • (Integer)

    The depth starting from 0



67
68
69
# File 'lib/twig/runtime/loop_context.rb', line 67

def depth0
  @depth
end