Class: Curlybars::Configuration
- Inherits:
-
Object
- Object
- Curlybars::Configuration
- Defined in:
- lib/curlybars/configuration.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#compiler_transformers ⇒ Object
Returns the value of attribute compiler_transformers.
-
#custom_processors ⇒ Object
Returns the value of attribute custom_processors.
-
#global_helpers_provider_classes ⇒ Object
Returns the value of attribute global_helpers_provider_classes.
-
#nesting_limit ⇒ Object
Returns the value of attribute nesting_limit.
-
#output_limit ⇒ Object
Returns the value of attribute output_limit.
-
#presenters_namespace ⇒ Object
Returns the value of attribute presenters_namespace.
-
#rendering_timeout ⇒ Object
Returns the value of attribute rendering_timeout.
-
#traversing_limit ⇒ Object
Returns the value of attribute traversing_limit.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#cache ⇒ Object
Returns the value of attribute cache.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def cache @cache end |
#compiler_transformers ⇒ Object
Returns the value of attribute compiler_transformers.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def compiler_transformers @compiler_transformers end |
#custom_processors ⇒ Object
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_classes ⇒ Object
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_limit ⇒ Object
Returns the value of attribute nesting_limit.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def nesting_limit @nesting_limit end |
#output_limit ⇒ Object
Returns the value of attribute output_limit.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def output_limit @output_limit end |
#presenters_namespace ⇒ Object
Returns the value of attribute presenters_namespace.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def presenters_namespace @presenters_namespace end |
#rendering_timeout ⇒ Object
Returns the value of attribute rendering_timeout.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def rendering_timeout @rendering_timeout end |
#traversing_limit ⇒ Object
Returns the value of attribute traversing_limit.
19 20 21 |
# File 'lib/curlybars/configuration.rb', line 19 def traversing_limit @traversing_limit end |