Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Bundler
/
Thor
/
Group
/
//opt/alt/ruby27/share/ri/system/Bundler/Thor/Group/invoke_from_option-c.ri
U:RDoc::AnyMethod[iI"invoke_from_option:ETI"-Bundler::Thor::Group::invoke_from_option;TT:privateo: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