Class: Curlybars::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/curlybars/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/curlybars/configuration.rb', line 21

def initialize
  @presenters_namespace = ''
  @nesting_limit = 10
  @traversing_limit = 10
  @output_limit = 1.megabyte
  @rendering_timeout = 10.seconds
  @custom_processors = []
  @compiler_transformers = []
  @global_helpers_provider_classes = []
  @cache = ->(key, &block) { block.call }
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def cache
  @cache
end

#compiler_transformersObject

Returns the value of attribute compiler_transformers.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def compiler_transformers
  @compiler_transformers
end

#custom_processorsObject

Returns the value of attribute custom_processors.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def custom_processors
  @custom_processors
end

#global_helpers_provider_classesObject

Returns the value of attribute global_helpers_provider_classes.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def global_helpers_provider_classes
  @global_helpers_provider_classes
end

#nesting_limitObject

Returns the value of attribute nesting_limit.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def nesting_limit
  @nesting_limit
end

#output_limitObject

Returns the value of attribute output_limit.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def output_limit
  @output_limit
end

#presenters_namespaceObject

Returns the value of attribute presenters_namespace.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def presenters_namespace
  @presenters_namespace
end

#rendering_timeoutObject

Returns the value of attribute rendering_timeout.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def rendering_timeout
  @rendering_timeout
end

#traversing_limitObject

Returns the value of attribute traversing_limit.



19
20
21
# File 'lib/curlybars/configuration.rb', line 19

def traversing_limit
  @traversing_limit
end