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
/
Util
/
//opt/alt/ruby27/share/ri/system/Bundler/Thor/Util/find_class_and_command_by_namespace-c.ri
U:RDoc::AnyMethod[iI"(find_class_and_command_by_namespace:ETI"=Bundler::Thor::Util::find_class_and_command_by_namespace;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"^Receives a namespace and tries to retrieve a Bundler::Thor or Bundler::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::BlankLine S:RDoc::Markup::Heading: leveli : textI" Examples;T@o:RDoc::Markup::Verbatim; [I"$class Foo::Bar < Bundler::Thor ;TI" def baz ;TI" end ;TI" end ;TI" ;TI"+class Baz::Foo < Bundler::Thor::Group ;TI" end ;TI" ;TI"pBundler::Thor::Util.namespace_to_thor_class("foo:bar") #=> Foo::Bar, nil # will invoke default command ;TI"RBundler::Thor::Util.namespace_to_thor_class("baz:foo") #=> Baz::Foo, nil ;TI"TBundler::Thor::Util.namespace_to_thor_class("foo:bar:baz") #=> Foo::Bar, "baz" ;T:@format0S;; i ;I"Parameters;To; ; [I"namespace<String>;T: @fileI"-lib/bundler/vendor/thor/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