Class: Amrita2::Filters::PutStream
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name) ⇒ PutStream
constructor
A new instance of PutStream.
- #method_body_code(de, cg) ⇒ Object
Methods inherited from Base
filter_method, inherited, #parse_filter_a, #|
Constructor Details
#initialize(name) ⇒ PutStream
Returns a new instance of PutStream.
2544 2545 2546 |
# File 'lib/amrita2/template.rb', line 2544 def initialize(name) @name = name end |
Instance Method Details
#method_body_code(de, cg) ⇒ Object
2548 2549 2550 2551 |
# File 'lib/amrita2/template.rb', line 2548 def method_body_code(de, cg) cg.code("#PutStream") cg.put_stream(@name) end |