Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.188
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby20 /
share /
ri /
2.0.0 /
system /
ERB /
Delete
Unzip
Name
Size
Permission
Date
Action
DefMethod
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
Util
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-ERB.ri
705
B
-rw-r--r--
2023-07-26 17:38
def_class-i.ri
837
B
-rw-r--r--
2023-07-26 17:38
def_method-i.ri
686
B
-rw-r--r--
2023-07-26 17:38
def_module-i.ri
718
B
-rw-r--r--
2023-07-26 17:38
filename-i.ri
334
B
-rw-r--r--
2023-07-26 17:38
make_compiler-i.ri
343
B
-rw-r--r--
2023-07-26 17:38
new-c.ri
2.69
KB
-rw-r--r--
2023-07-26 17:38
new_toplevel-i.ri
369
B
-rw-r--r--
2023-07-26 17:38
result-i.ri
593
B
-rw-r--r--
2023-07-26 17:38
run-i.ri
311
B
-rw-r--r--
2023-07-26 17:38
set_eoutvar-i.ri
493
B
-rw-r--r--
2023-07-26 17:38
src-i.ri
267
B
-rw-r--r--
2023-07-26 17:38
version-c.ri
308
B
-rw-r--r--
2023-07-26 17:38
Save
Rename
U:RDoc::AnyMethod[iI"new:ETI" ERB::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FConstructs a new ERB object with the template specified in _str_.;To:RDoc::Markup::BlankLine o; ; [ I"KAn ERB object works by building a chunk of Ruby code that will output ;TI"Qthe completed template when run. If _safe_level_ is set to a non-nil value, ;TI"LERB code will be run in a separate thread with <b>$SAFE</b> set to the ;TI"provided level.;T@o; ; [I"OIf _trim_mode_ is passed a String containing one or more of the following ;TI">modifiers, ERB will adjust its code generation as listed:;T@o:RDoc::Markup::Verbatim; [ I"@% enables Ruby code processing for lines beginning with % ;TI"A<> omit newline for lines starting with <% and ending in %> ;TI",> omit newline for lines ending in %> ;TI"'- omit blank lines ending in -%> ;T:@format0o; ; [ I"M_eoutvar_ can be used to set the name of the variable ERB will build up ;TI"Fits output in. This is useful when you need to run multiple ERB ;TI"Ntemplates through the same binding and/or when you want to control where ;TI"Ooutput ends up. Pass the name of the variable to be used inside a String.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o;; ['I"require "erb" ;TI" ;TI"# build data class ;TI"class Listings ;TI"3 PRODUCT = { :name => "Chicken Fried Steak", ;TI"J :desc => "A well messages pattie, breaded and fried.", ;TI"# :cost => 9.95 } ;TI" ;TI"$ attr_reader :product, :price ;TI" ;TI"2 def initialize( product = "", price = "" ) ;TI" @product = product ;TI" @price = price ;TI" end ;TI" ;TI" def build ;TI" b = binding ;TI"C # create and run templates, filling member data variables ;TI"P ERB.new(<<-'END_PRODUCT'.gsub(/^\s+/, ""), 0, "", "@product").result b ;TI"! <%= PRODUCT[:name] %> ;TI"! <%= PRODUCT[:desc] %> ;TI" END_PRODUCT ;TI"L ERB.new(<<-'END_PRICE'.gsub(/^\s+/, ""), 0, "", "@price").result b ;TI": <%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %> ;TI"! <%= PRODUCT[:desc] %> ;TI" END_PRICE ;TI" end ;TI" end ;TI" ;TI"# setup template data ;TI"listings = Listings.new ;TI"listings.build ;TI" ;TI"3puts listings.product + "\n" + listings.price ;T; 0o; ; [I"_Generates_;T@o;; [ I"Chicken Fried Steak ;TI"0A well messages pattie, breaded and fried. ;TI" ;TI"!Chicken Fried Steak -- 9.95 ;TI"/A well messages pattie, breaded and fried.;T; 0: @fileI"lib/erb.rb;T:0@omit_headings_from_table_of_contents_below000[ I"<(str, safe_level=nil, trim_mode=nil, eoutvar='_erbout');T@UFI"ERB;TcRDoc::NormalClass0