Sha256: 34e75b2ab71009bfad89d748a623cebcb2c9ca37519bb5c52cee2318392bfb92

Contents?: true

Size: 1.39 KB

Versions: 12

Compression:

Stored size: 1.39 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:const_defined?:@docstringIC:YARD::Docstring"}Returns <code>true</code> if a constant with the given name is
defined by <i>mod</i>.

   Math.const_defined? "PI"   #=> true
:@objectu:YARD::StubProxyModule#const_defined?:
@summary0:	@all"±Returns <code>true</code> if a constant with the given name is
defined by <i>mod</i>.

   Math.const_defined? "PI"   #=> true


@overload const_defined?(sym)
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Module#const_defined?;;;IC;	"
;
u;Module#const_defined?;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[[:sym0;0:@signature"const_defined?(sym);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["
object.c0:@namespaceu;Module:
@path"Module#const_defined?;[:@visibility:public:@source"Ï/*
 *  call-seq:
 *     mod.const_defined?(sym)   => true or false
 *  
 *  Returns <code>true</code> if a constant with the given name is
 *  defined by <i>mod</i>.
 *     
 *     Math.const_defined? "PI"   #=> true
 */

static VALUE
rb_mod_const_defined(mod, name)
    VALUE mod, name;
{
    ID id = rb_to_id(name);

    if (!rb_is_const_id(id)) {
    rb_name_error(id, "wrong constant name %s", rb_id2name(id));
    }
    return rb_const_defined_at(mod, id);
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Module/const_defined_3F_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Module/const_defined_3F_i.dat