class Aws::Templates::Help::Rdoc::DefaultProvider

Default help provider

Does a few preliminary check and either use insection of the target object or, if it supports recursive concept, goes recursively into it and composes resulting list tree of descriptions.

Public Instance Methods

provide() click to toggle source
# File lib/aws/templates/help/rdoc.rb, line 63
def provide
  return _recursive if Utils.recursive?(context)
  _inspection
end

Private Instance Methods

_inspection() click to toggle source
# File lib/aws/templates/help/rdoc.rb, line 70
def _inspection
  return '*deleted*' if context == Templates::Utils::Default.deleted
  str = context.inspect
  sub(parameters.nil? ? text(str) : text("_#{parameters}_ #{str}"))
end
_recursive() click to toggle source
# File lib/aws/templates/help/rdoc.rb, line 76
def _recursive
  container = context
              .keys
              .each_with_object(list) { |key, l| l << processed_for(context[key], key) }

  parameters.nil? ? sub(container) : sub(text("_#{parameters}_"), container)
end