module Aws::Templates::Render::Utils::Inspect

Render for object introspection

Used by Inspectable to provide introspection mechanism (inspect) detached from the objects themselves. Standard framework rendering mechanism is used.

Constants

DEFAULT_RECURSION_DEPTH

Public Class Methods

recursion_depth() click to toggle source
# File lib/aws/templates/render/utils/inspect.rb, line 17
def self.recursion_depth
  @recursion_depth || DEFAULT_RECURSION_DEPTH
end
recursion_depth=(depth) click to toggle source
# File lib/aws/templates/render/utils/inspect.rb, line 21
def self.recursion_depth=(depth)
  @recursion_depth = Integer(depth)
end

Public Instance Methods

render_pair(k, v) click to toggle source
# File lib/aws/templates/render/utils/inspect.rb, line 51
def render_pair(k, v)
  "#{rendered_for(k, depth)}: #{rendered_for(v, depth)}"
end
to_rendered() click to toggle source
# File lib/aws/templates/render/utils/inspect.rb, line 37
def to_rendered
  depth > 0 ? instance.inspect : instance.to_s
end