HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/doc/thor-1.1.0/ri/Thor/Group/invoke_from_option-c.ri
U:RDoc::AnyMethod[iI"invoke_from_option:ETI"$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 < 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/thor/group.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*names, &block);T@/FI"
Group;TcRDoc::NormalClass00