o:$YARD::CodeObjects::MethodObject: @name: enum_for:@docstringIC:YARD::Docstring"Returns Enumerable::Enumerator.new(self, method, *args). e.g.: str = "xyz" enum = str.enum_for(:each_byte) a = enum.map {|b| '%02x' % b } #=> ["78", "79", "7a"] # protects an array from being modified a = [1, 2, 3] some_method(a.to_enum) : @objectu:YARD::StubProxyObject#enum_for: @summary0: @all"YReturns Enumerable::Enumerator.new(self, method, *args). e.g.: str = "xyz" enum = str.enum_for(:each_byte) a = enum.map {|b| '%02x' % b } #=> ["78", "79", "7a"] # protects an array from being modified a = [1, 2, 3] some_method(a.to_enum) @overload to_enum(method = :each, *args) @overload enum_for(method = :each, *args):@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u; Object#enum_for;: to_enum;IC; " ; u; Object#enum_for; 0; ";[;[: @types0:@parameters[[: method" :each[: *args0: @text0:@signature"#to_enum(method = :each, *args):@tag_name" overloado; ; u; Object#enum_for;;;IC; " ; u; Object#enum_for; 0; ";[;[;0;[[;" :each[;0;0;"$enum_for(method = :each, *args);" overload:@current_file_has_commentsF: @scope: instance;[:@docstring_extra0: @files[["enumerator.c0:@namespaceu; Object: @path"Object#enum_for;[:@visibility: public: @source"/* * call-seq: * obj.to_enum(method = :each, *args) * obj.enum_for(method = :each, *args) * * Returns Enumerable::Enumerator.new(self, method, *args). * * e.g.: * * str = "xyz" * * enum = str.enum_for(:each_byte) * a = enum.map {|b| '%02x' % b } #=> ["78", "79", "7a"] * * # protects an array from being modified * a = [1, 2, 3] * some_method(a.to_enum) * */ static VALUE obj_to_enum(argc, argv, obj) int argc; VALUE *argv; VALUE obj; { VALUE meth = sym_each; if (argc > 0) { --argc; meth = *argv++; } return rb_enumeratorize(obj, meth, argc, argv); }:@source_type:c