<%= @desc %>
;TI" ;TI";TI"! <% if @cost < 10 %> ;TI"+ Only <%= @cost %>!!! ;TI" <% else %> ;TI") Call for a price, today! ;TI" <% end %> ;TI"
;TI" ;TI" ;TI" ;TI"}.gsub(/^ /, '') ;TI" ;TI"rhtml = ERB.new(template) ;TI" ;TI"# Set up template data. ;TI"#toy = Product.new( "TZ-1002", ;TI"& "Rubysapien", ;TI"M "Geek's Best Friend! Responds to Ruby commands...", ;TI"! 999.95 ) ;TI"Jtoy.add_feature("Listens for verbal commands in the Ruby language!") ;TI"@toy.add_feature("Ignores Perl, Java, and all C variants.") ;TI".toy.add_feature("Karate-Chop Action!!!") ;TI"4toy.add_feature("Matz signature on left leg.") ;TI"?toy.add_feature("Gem studded eyes... Rubies, of course!") ;TI" ;TI"# Produce result. ;TI" rhtml.run(toy.get_binding) ;T;0o; ;[I"1Generates (some blank lines removed):;T@o;;[I" ;TI";Geek's Best Friend! Responds to Ruby commands...
;TI" ;TI";TI"' Call for a price, today! ;TI"
;TI" ;TI" ;TI" ;T;0S; ; i;I" Notes;T@o; ;[I"UThere are a variety of templating solutions available in various Ruby projects. ;TI"SFor example, RDoc, distributed with Ruby, uses its own template engine, which ;TI"can be reused elsewhere.;T@o; ;[I"?Other popular engines could be found in the corresponding ;TI"M{Category}[https://www.ruby-toolbox.com/categories/template_engines] of ;TI"The Ruby Toolbox.;T: @fileI"lib/erb.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ;I"lib/erb/version.rb;T;0;0;0[ [ I" encoding;TI"R;T:publicFI"lib/erb.rb;T[ I" filename;TI"RW;T;F@[ I"lineno;T@!;F@[ I"src;T@;F@[U:RDoc::Constant[i I"NOT_GIVEN;TI"ERB::NOT_GIVEN;T:private0o;;[ ;@;0@@cRDoc::NormalClass0U;[i I"VERSION;TI"ERB::VERSION;T;0o;;[ ;@;0@@@-0[ [[I" class;T[[;[[I"new;T@[I"version;T@[:protected[ [;[ [I" instance;T[[;[[I"def_class;T@[I"def_method;T@[I"def_module;T@[I"location=;T@[I"make_compiler;T@[I"result;T@[I"result_with_hash;T@[I"run;T@[I"set_eoutvar;T@[;[ [;[[I"new_toplevel;T@[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[ @I"lib/erb/compiler.rb;TI"lib/erb/def_method.rb;TI"lib/erb/util.rb;T@@cRDoc::TopLevel