123456789_123456789_123456789_123456789_123456789_

Module: IRB::HelperMethod

Relationships & Source Files
Namespace Children
Classes:
Defined in: lib/irb/helper_method.rb,
lib/irb/helper_method/base.rb,
lib/irb/helper_method/conf.rb

Class Attribute Summary

Class Method Summary

Class Attribute Details

.helper_methods (readonly)

[ GitHub ]

  
# File 'lib/irb/helper_method.rb', line 8

attr_reader :helper_methods

Class Method Details

.all_helper_methods_info

[ GitHub ]

  
# File '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)

[ GitHub ]

  
# File '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