Module: Cfhighlander::Helper

Defined in:
lib/cfhighlander.helper.rb

Class Method Summary collapse

Class Method Details

.parameter_cfndsl_value(value) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/cfhighlander.helper.rb', line 7

def self.parameter_cfndsl_value(value)

  if value.class == String
    return "'#{value}'"
  end

  if value.class == Hash
    return value.to_json
  end

  return "'#{value}'"

end