HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/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::BlankLineS: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