Class: Malt::Formats::Radius
Overview
Radius Template
http://github.com/jlong/radius/
Instance Attribute Summary
Attributes inherited from Abstract
#options
Instance Method Summary
collapse
Methods inherited from Abstract
#default, engine, #engine, #extensions, extensions, #file, #parse_type_and_data, #refile, register, #render, #subtype, #text, #to, #to_s, #type
Instance Method Details
#html(data, &yld) ⇒ Object
26
27
28
|
# File 'lib/malt/formats/radius.rb', line 26
def html(data, &yld)
render_engine.render(:text=>text, :file=>file, :data=>data, &yld)
end
|
#radius ⇒ Object
16
17
18
|
# File 'lib/malt/formats/radius.rb', line 16
def radius
text
end
|
#to_html(data, &yld) ⇒ Object
31
32
33
34
35
|
# File 'lib/malt/formats/radius.rb', line 31
def to_html(data, &yld)
text = html(data, &yld)
opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
HTML.new(opts)
end
|
#to_radius ⇒ Object
21
22
23
|
# File 'lib/malt/formats/radius.rb', line 21
def to_radius
self
end
|