Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
syntax
/
//opt/alt/ruby27/share/ri/system/syntax/page-comments_rdoc.ri
U:RDoc::TopLevel[ i I"syntax/comments.rdoc:EFcRDoc::Parser::Simpleo:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI"Code Comments;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"6Ruby has two types of comments: inline and block.;T@ o; ;[I"TInline comments start with the <code>#</code> character and continue until the ;TI"end of the line:;T@ o:RDoc::Markup::Verbatim;[I"# On a separate line ;TI"+class Foo # or at the end of the line ;TI" # can be indented ;TI" def bar ;TI" end ;TI" end ;T:@format0o; ;[I"SBlock comments start with <code>=begin</code> and end with <code>=end</code>. ;TI"*Each should start on a separate line.;T@ o;;[I"=begin ;TI" This is ;TI"commented out ;TI" =end ;TI" ;TI"class Foo ;TI" end ;TI" ;TI"=begin some_tag ;TI"this works, too ;TI" =end ;T;0o; ;[I"Q<code>=begin</code> and <code>=end</code> can not be indented, so this is a ;TI"syntax error:;T@ o;;[ I"class Foo ;TI" =begin ;TI" Will not work ;TI" =end ;TI"end;T;0: @file@:0@omit_headings_from_table_of_contents_below0