Class: SparkleFormation::TerraformStruct

Inherits:
FunctionStruct
  • Object
show all
Defined in:
lib/sparkle_formation/function_struct.rb

Overview

FunctionStruct for customized terraform functions

Constant Summary collapse

SINGLE_ANCHOR =
true

Instance Attribute Summary

Attributes inherited from FunctionStruct

#_fn_args, #_fn_name

Instance Method Summary collapse

Methods inherited from FunctionStruct

#[], #_dump, #_eval_join, #initialize, #inspect, #method_missing, #nil?, #root?, #to_s

Constructor Details

This class inherits a constructor from SparkleFormation::FunctionStruct

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SparkleFormation::FunctionStruct

Instance Method Details

#__anchor_startString

Returns start character(s) used to anchor function call.

Returns:

  • (String)

    start character(s) used to anchor function call



274
275
276
# File 'lib/sparkle_formation/function_struct.rb', line 274

def __anchor_start
  '${'
end

#__anchor_stopString

Returns stop character(s) used to anchor function call.

Returns:

  • (String)

    stop character(s) used to anchor function call



279
280
281
# File 'lib/sparkle_formation/function_struct.rb', line 279

def __anchor_stop
  '}'
end

#__empty_argument_listString

Returns value to use when argument list is empty.

Returns:

  • (String)

    value to use when argument list is empty



284
285
286
# File 'lib/sparkle_formation/function_struct.rb', line 284

def __empty_argument_list
  ''
end

#__quote_nested_funcs?Boolean

Returns:

  • (Boolean)


298
299
300
# File 'lib/sparkle_formation/function_struct.rb', line 298

def __quote_nested_funcs?
  false
end

#__single_anchor?FalseClass

Returns wrap every structure in anchors.

Returns:

  • (FalseClass)

    wrap every structure in anchors



294
295
296
# File 'lib/sparkle_formation/function_struct.rb', line 294

def __single_anchor?
  true
end

#__single_quote_stringsFalseClass

Returns disable single quote string generation.

Returns:

  • (FalseClass)

    disable single quote string generation



289
290
291
# File 'lib/sparkle_formation/function_struct.rb', line 289

def __single_quote_strings
  false
end

#_klassClass

Returns:

  • (Class)


303
304
305
# File 'lib/sparkle_formation/function_struct.rb', line 303

def _klass
  ::SparkleFormation::TerraformStruct
end