class Kafo::HelpBuilders::Base

Public Class Methods

new(params) click to toggle source
# File lib/kafo/help_builders/base.rb, line 11
def initialize(params)
  super()
  @params = params
end

Public Instance Methods

add_list(heading, items) click to toggle source
# File lib/kafo/help_builders/base.rb, line 16
def add_list(heading, items)
  if heading == 'Options'
    puts "\n#{heading}:"

    data = by_module(items)
    sorted_keys(data).each do |section|
      if section == 'Generic'
        add_list(header(1, section), data[section])
      else
        add_module(section, data[section])
      end
    end
  else
    super
  end
end