Sha256: 5df7ca8465224fe0faa593bac85a34a738837af264817b9c7f62ad56844ef6f7

Contents?: true

Size: 1.51 KB

Versions: 16

Compression:

Stored size: 1.51 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:indices:@docstringIC:YARD::Docstring"5Deprecated in favor of <code>Hash#select</code>.
:@objectu:YARD::StubProxyHash#indices:
@summary0:	@all"ŹDeprecated in favor of <code>Hash#select</code>.



@overload indexes(key, ...)
  @return [Array]
@overload indices(key, ...)
  @return [Array]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Hash#indices;:indexes;IC;	"
;
u;Hash#indices;0;
"@return [Array];[;[o:YARD::Tags::Tag
;
0;0:@types["
Array:
@text":@tag_name"return;0:@parameters[[:key0[:...0;0:@signature"indexes(key, ...);"
overloado;
;
u;Hash#indices;;;IC;	"
;
u;Hash#indices;0;
"@return [Array];[;[o;
;
0;0;["
Array;";"return;0;[[;0[;0;0;"indices(key, ...);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["hash.c0:@namespaceu;	Hash:
@path"Hash#indices;[:@visibility:public:@source"6/*
 *  call-seq:
 *     hsh.indexes(key, ...)    => array
 *     hsh.indices(key, ...)    => array
 *
 *  Deprecated in favor of <code>Hash#select</code>.
 *
 */

static VALUE
rb_hash_indexes(argc, argv, hash)
    int argc;
    VALUE *argv;
    VALUE hash;
{
    VALUE indexes;
    int i;

    rb_warn("Hash#%s is deprecated; use Hash#values_at",
        rb_id2name(rb_frame_last_func()));
    indexes = rb_ary_new2(argc);
    for (i=0; i<argc; i++) {
    RARRAY(indexes)->ptr[i] = rb_hash_aref(hash, argv[i]);
    RARRAY(indexes)->len++;
    }
    return indexes;
}:@source_type:c

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pry-doc-0.5.1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.5.0 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.6 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.5 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Hash/indices_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Hash/indices_i.dat