HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Module/const_get-i.ri
U:RDoc::AnyMethod[iI"const_get:ETI"Module#const_get;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I">Checks for a constant with the given name in <i>mod</i>. ;TI"6If +inherit+ is set, the lookup will also search ;TI">the ancestors (and +Object+ if <i>mod</i> is a +Module+).;To:RDoc::Markup::BlankLineo;
;	[I"EThe value of the constant is returned if a definition is found, ;TI"'otherwise a +NameError+ is raised.;T@o:RDoc::Markup::Verbatim;	[I"0Math.const_get(:PI)   #=> 3.14159265358979
;T:@format0o;
;	[I"IThis method will recursively look up constant names if a namespaced ;TI"*class name is provided.  For example:;T@o;;	[I"$module Foo; class Bar; end end
;TI"!Object.const_get 'Foo::Bar'
;T;
0o;
;	[I"BThe +inherit+ flag is respected on each lookup.  For example:;T@o;;	[I"module Foo
;TI"  class Bar
;TI"    VAL = 10
;TI"  end
;TI"
;TI"  class Baz < Bar; end
;TI"	end
;TI"
;TI"6Object.const_get 'Foo::Baz::VAL'         # => 10
;TI"=Object.const_get 'Foo::Baz::VAL', false  # => NameError
;T;
0o;
;	[I"HIf the argument is not a valid constant name a +NameError+ will be ;TI"1raised with a warning "wrong constant name".;T@o;;	[I"HObject.const_get 'foobar' #=> NameError: wrong constant name foobar;T;
0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"[mod.const_get(sym, inherit=true)    -> obj
mod.const_get(str, inherit=true)    -> obj
;T0[I"(*args);T@6FI"Module;TcRDoc::NormalClass00