Class: Amrita2::Filters::PutStream

Inherits:
Base show all
Defined in:
lib/amrita2/template.rb

Instance Attribute Summary

Attributes inherited from Base

#next_

Instance Method Summary collapse

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