Class: Lookbook::ActionViewConfigHandler
- Defined in:
- lib/lookbook/services/templates/action_view_config_handler.rb
Instance Attribute Summary collapse
- #disable_annotations ⇒ Object readonly
- #disable_partial_prefixes ⇒ Object readonly
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(disable_annotations: true, disable_partial_prefixes: true) ⇒ ActionViewConfigHandler
constructor
A new instance of ActionViewConfigHandler.
Methods inherited from Service
Constructor Details
#initialize(disable_annotations: true, disable_partial_prefixes: true) ⇒ ActionViewConfigHandler
Returns a new instance of ActionViewConfigHandler.
5 6 7 8 |
# File 'lib/lookbook/services/templates/action_view_config_handler.rb', line 5 def initialize(disable_annotations: true, disable_partial_prefixes: true) @disable_annotations = disable_annotations @disable_partial_prefixes = disable_partial_prefixes end |
Instance Attribute Details
#disable_annotations ⇒ Object (readonly)
3 4 5 |
# File 'lib/lookbook/services/templates/action_view_config_handler.rb', line 3 def disable_annotations @disable_annotations end |
#disable_partial_prefixes ⇒ Object (readonly)
3 4 5 |
# File 'lib/lookbook/services/templates/action_view_config_handler.rb', line 3 def disable_partial_prefixes @disable_partial_prefixes end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/lookbook/services/templates/action_view_config_handler.rb', line 10 def call handle_annotations handle_partial_prefixes yield ensure restore_annotations restore_partial_prefixes end |