HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2/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::BlankLineo: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