class SamlTool::ErbBuilder
Attributes
args[R]
settings[R]
template[R]
Public Class Methods
build(args)
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 16 def self.build(args) new(args).to_s end
new(args)
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 20 def initialize(args) @args = args @settings = args[:settings] @template = args[:template] end
Public Instance Methods
build_output()
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 34 def build_output erb.result settings.send(:binding) end
erb()
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 38 def erb ERB.new(template) end
output()
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 30 def output @output ||= build_output end
to_s()
click to toggle source
# File lib/saml_tool/erb_builder.rb, line 26 def to_s output end