Sha256: 0c3026ba261f473f7b800ef52b04c986fab37828007524186f00f44968d6f2a9
Contents?: true
Size: 1.39 KB
Versions: 12
Compression:
Stored size: 1.39 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name: hash:@docstringIC:YARD::Docstring"�Generate a hash value such that two ranges with the same start and end points, and the same value for the "exclude end" flag, generate the same hash value. :@objectu:YARD::StubProxyRange#hash: @summary0: @all"�Generate a hash value such that two ranges with the same start and end points, and the same value for the "exclude end" flag, generate the same hash value. @overload hash @return [Fixnum]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Range#hash;;;IC; " ; u;Range#hash;0; "@return [Fixnum];[;[o:YARD::Tags::Tag ; 0;0:@types["Fixnum: @text":@tag_name"return;0:@parameters[;0:@signature" hash;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["range.c0:@namespaceu; Range: @path"Range#hash;[:@visibility:public:@source"�/* * call-seq: * rng.hash => fixnum * * Generate a hash value such that two ranges with the same start and * end points, and the same value for the "exclude end" flag, generate * the same hash value. */ static VALUE range_hash(range) VALUE range; { long hash = EXCL(range); VALUE v; v = rb_hash(rb_ivar_get(range, id_beg)); hash ^= v << 1; v = rb_hash(rb_ivar_get(range, id_end)); hash ^= v << 9; hash ^= EXCL(range) << 24; return LONG2FIX(hash); }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems