Class: Tracing::StringTemplate
Instance Method Summary
collapse
#handle_after_call, #handle_before_call
#indentation, #method_stack, #output, #output_handler, #space_count
Instance Method Details
#before_block_template ⇒ Object
12
13
14
15
16
17
|
# File 'lib/templates/string_template.rb', line 12
def before_block_template
template = <<-EOF
(and a block)
-----------------------------------------------
EOF
end
|
#before_template(context) ⇒ Object
3
4
5
6
7
8
9
10
|
# File 'lib/templates/string_template.rb', line 3
def before_template(context)
template = <<-EOF
<<= <%= context[:method_full_name] %> : BEGIN
-----------------------------------------------
<%= context[:args].inspect %>
===============================================
EOF
end
|
#end_template(context) ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/templates/string_template.rb', line 19
def end_template(context)
template = <<-EOF
<<= <%= context[:method_full_name] %> : END
-----------------------------------------------
<%= context[:result] %>
===============================================
EOF
end
|