File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/String/to-i.ri
U:RDoc::AnyMethod[iI"to:ETI"String#to;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns a substring from the beginning of the string to the given position. ;TI"KIf the position is negative, it is counted from the end of the string.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"str = "hello"
;TI"str.to(0) # => "h"
;TI"str.to(3) # => "hell"
;TI"str.to(-2) # => "hell"
;T:@format0o;
; [I">You can mix it with +from+ method and do fun things like:;T@o;; [I"str = "hello"
;TI"%str.from(0).to(-1) # => "hello"
;TI""str.from(1).to(-2) # => "ell";T;
0:
@fileI"1lib/active_support/core_ext/string/access.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(position);T@FI"String;TcRDoc::NormalClass00