class CFnDK::ErbString
Attributes
properties[R]
uuid[R]
Public Class Methods
new(str, option)
click to toggle source
# File lib/cfndk/erb_string.rb, line 4 def initialize(str, option) @erb = ERB.new(str, nil, '-') @properties = option[:properties] @uuid = option[:uuid] end
Public Instance Methods
append_uuid(glue = '-')
click to toggle source
# File lib/cfndk/erb_string.rb, line 14 def append_uuid(glue = '-') if uuid glue + uuid else '' end end
value()
click to toggle source
# File lib/cfndk/erb_string.rb, line 10 def value @erb.result(binding) end