模块 IRB::HelperMethod

属性

helper_methods[R]

公共类方法

all_helper_methods_info() 点击切换源代码
# 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) 点击切换源代码
# 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