Class: SparkleFormation::JinjaExpressionStruct

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

Overview

FunctionStruct for jinja expressions

Instance Attribute Summary

Attributes inherited from FunctionStruct

#_fn_args, #_fn_name

Instance Method Summary collapse

Methods inherited from FunctionStruct

#[], #__quote_nested_funcs?, #__single_anchor?, #_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



182
183
184
# File 'lib/sparkle_formation/function_struct.rb', line 182

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



187
188
189
# File 'lib/sparkle_formation/function_struct.rb', line 187

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



192
193
194
# File 'lib/sparkle_formation/function_struct.rb', line 192

def __empty_argument_list
  ''
end

#__single_quote_stringsFalseClass

Returns disable single quote string generation.

Returns:

  • (FalseClass)

    disable single quote string generation



197
198
199
# File 'lib/sparkle_formation/function_struct.rb', line 197

def __single_quote_strings
  false
end

#_klassClass

Returns:

  • (Class)


202
203
204
# File 'lib/sparkle_formation/function_struct.rb', line 202

def _klass
  ::SparkleFormation::JinjaExpressionStruct
end