module Wpxf::Cli::ModuleInfo

Helper methods for outputing information about the currently loaded module.

Public Instance Methods

formatted_module_description() click to toggle source
# File lib/wpxf/cli/module_info.rb, line 16
def formatted_module_description
  if context.module.module_description_preformatted
    indent_without_wrap(context.module.module_desc)
  else
    remove_new_lines_and_wrap_text(context.module.module_desc).strip
  end
end
info() click to toggle source
# File lib/wpxf/cli/module_info.rb, line 47
def info
  return unless module_loaded?(false)

  print_module_summary
  puts
  print_author
  puts
  show_options
  puts
  print_description
  puts
  print_references
end
print_author() click to toggle source
print_description() click to toggle source
print_module_summary() click to toggle source
print_references() click to toggle source