o:$YARD::CodeObjects::MethodObject:@visibility: public:@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) :@line_rangeo: Range: exclT:endiU: beginiE:@ref_tags[:@unresolved_reference0: @summary0:@hash_flagF: @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): @objectu:YARD::StubProxyObject#enum_for: @tags[o:YARD::Tags::OverloadTag ;IC; " ;[;0;0;F;u;Object#enum_for;";[:@parameters[[" method" :each[" *args0: @name: to_enum;u;Object#enum_for: @types0: @text0:@signature"#to_enum(method = :each, *args):@tag_name" overloado; ;IC; " ;[;0;0;F;u;Object#enum_for;";[;[[" method" :each[" *args0;: enum_for;u;Object#enum_for;0;0;"$enum_for(method = :each, *args);" overload;[: @files[["enumerator.ciX:@source_type0;;:@namespaceu; Object:@current_file_has_commentsT: @scope: instance: @path"Object#enum_for:@docstrings{;"static VALUE:@module_functionF;[: @source"8static VALUE obj_to_enum(argc, argv, obj) int argc;