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/default/doc/thor-1.1.0/ri/Thor/Util/find_class_and_command_by_namespace-c.ri
U:RDoc::AnyMethod[iI"(find_class_and_command_by_namespace:ETI"4Thor::Util::find_class_and_command_by_namespace;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[	I"LReceives a namespace and tries to retrieve a Thor or Thor::Group class ;TI"Ofrom it. It first searches for a class using the all the given namespace, ;TI"Mif it's not found, removes the highest entry and searches for the class ;TI"Bagain. If found, returns the highest entry as the class name.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli	:	textI"
Examples;T@o:RDoc::Markup::Verbatim;	[I"class Foo::Bar < Thor
;TI"  def baz
;TI"  end
;TI"	end
;TI"
;TI""class Baz::Foo < Thor::Group
;TI"	end
;TI"
;TI"gThor::Util.namespace_to_thor_class("foo:bar")     #=> Foo::Bar, nil # will invoke default command
;TI"IThor::Util.namespace_to_thor_class("baz:foo")     #=> Baz::Foo, nil
;TI"KThor::Util.namespace_to_thor_class("foo:bar:baz") #=> Foo::Bar, "baz"
;T:@format0S;;
i	;I"Parameters;To;
;	[I"namespace<String>;T:
@fileI"lib/thor/util.rb;T:0@omit_headings_from_table_of_contents_below000[[I"%find_class_and_task_by_namespace;To;;	[;@&;0I"!(namespace, fallback = true);T@&FI"	Util;TcRDoc::NormalModule00