Class: Amrita2::Filters::Attr

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

Defined Under Namespace

Classes: Renderer

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(*args) ⇒ Attr

Returns a new instance of Attr.



2104
2105
2106
# File 'lib/amrita2/template.rb', line 2104

def initialize(*args)
  @args = args
end

Instance Method Details

#setup_type_renderer(de) ⇒ Object



2108
2109
2110
2111
# File 'lib/amrita2/template.rb', line 2108

def setup_type_renderer(de)
  de.renderers.clear
  de.renderers << Renderer.new(*@args)
end