Skip to Content Skip to Search
Namespace
Methods
A
R

Attributes

[R] helper_methods

Class Public methods

all_helper_methods_info()

# File ruby/lib/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)

# File ruby/lib/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