module IRB::HelperMethod

Attributes

helper_methods[R]

Public Class Methods

all_helper_methods_info() click to toggle source
# File irb/helper_method.rb, line 18
def all_helper_methods_info
  @helper_methods.map do |name, helper_class|
    { display_name: name, description: helper_class.description }
  end
end
register(name, helper_class) click to toggle source
# File irb/helper_method.rb, line 10
def register(name, helper_class)
  @helper_methods[name] = helper_class

  if defined?(HelpersContainer)
    HelpersContainer.install_helper_methods
  end
end