Module: IRB::HelperMethod
- Defined in:
- lib/irb/helper_method.rb,
lib/irb/helper_method/base.rb,
lib/irb/helper_method/conf.rb more...
Defined Under Namespace
Class Attribute Summary collapse
-
.helper_methods ⇒ Object
readonly
Returns the value of attribute helper_methods.
Class Method Summary collapse
Class Attribute Details
Class Method Details
permalink .all_helper_methods_info ⇒ Object
[View source]
18 19 20 21 22 |
# 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 |
permalink .register(name, helper_class) ⇒ Object
[View source]
10 11 12 13 14 15 16 |
# 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 |