File: //usr/local/rvm/gems/ruby-2.5.9/doc/activesupport-6.1.4.1/ri/String/indent-i.ri
U:RDoc::AnyMethod[iI"indent:ETI"String#indent;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"'Indents the lines in the receiver:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"<<EOS.indent(2)
;TI"def some_method
;TI" some_code
;TI" end
;TI" EOS
;TI"
# =>
;TI" def some_method
;TI" some_code
;TI" end
;T:@format0o;
; [ I"LThe second argument, +indent_string+, specifies which indent string to ;TI"Juse. The default is +nil+, which tells the method to make a guess by ;TI"Mpeeking at the first indented line, and fallback to a space if there is ;TI"
none.;T@o;; [I"-" foo".indent(2) # => " foo"
;TI":"foo\n\t\tbar".indent(2) # => "\t\tfoo\n\t\t\t\tbar"
;TI"-"foo".indent(2, "\t") # => "\t\tfoo"
;T;
0o;
; [I"OWhile +indent_string+ is typically one space or tab, it may be any string.;T@o;
; [I"KThe third argument, +indent_empty_lines+, is a flag that says whether ;TI"6empty lines should be indented. Default is false.;T@o;; [I"="foo\n\nbar".indent(2) # => " foo\n\n bar"
;TI">"foo\n\nbar".indent(2, nil, true) # => " foo\n \n bar";T;
0:
@fileI"1lib/active_support/core_ext/string/indent.rb;T:0@omit_headings_from_table_of_contents_below000[ I">(amount, indent_string = nil, indent_empty_lines = false);T@0FI"String;TcRDoc::NormalClass00