Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Bundler
/
Thor
/
Group
/
//proc/self/root/opt/ruby-2.7/usr/share/ri/2.7.0/system/Bundler/Thor/Group/invoke_from_option-c.ri
U:RDoc::AnyMethod[iI"invoke_from_option:ETI"-Bundler::Thor::Group::invoke_from_option;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HInvoke a thor class based on the value supplied by the user to the ;TI"Kgiven option named "name". A class option must be created before this ;TI"+method is invoked for each name given.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli : textI" Examples;T@o:RDoc::Markup::Verbatim; [ I"/class GemGenerator < Bundler::Thor::Group ;TI"6 class_option :test_framework, :type => :string ;TI"* invoke_from_option :test_framework ;TI" end ;T:@format0S;; i ;I"Boolean options;T@o; ; [I"NIn some cases, you want to invoke a thor class if some option is true or ;TI"Jfalse. This is automatically handled by invoke_from_option. Then the ;TI"1option name is used to invoke the generator.;T@S;; i ;I"Preparing for invocation;T@o; ; [ I"MIn some cases you want to customize how a specified hook is going to be ;TI">invoked. You can do that by overwriting the class method ;TI"Nprepare_for_invocation. The class method must necessarily return a klass ;TI"and an optional command.;T@S;; i ;I"Custom invocations;T@o; ; [I"LYou can also supply a block to customize how the option is going to be ;TI"Linvoked. The block receives two parameters, an instance of the current ;TI"'class and the klass to be invoked.;T: @fileI".lib/bundler/vendor/thor/lib/thor/group.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*names, &block);T@/FI" Group;TcRDoc::NormalClass00