Class: CKEditor5::Rails::Context::PresetSerializer
- Inherits:
-
Object
- Object
- CKEditor5::Rails::Context::PresetSerializer
- Defined in:
- lib/ckeditor5/rails/context/preset_serializer.rb
Instance Method Summary collapse
-
#initialize(preset) ⇒ PresetSerializer
constructor
A new instance of PresetSerializer.
- #to_attributes ⇒ Object
Constructor Details
#initialize(preset) ⇒ PresetSerializer
Returns a new instance of PresetSerializer.
6 7 8 |
# File 'lib/ckeditor5/rails/context/preset_serializer.rb', line 6 def initialize(preset) @preset = preset end |
Instance Method Details
#to_attributes ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ckeditor5/rails/context/preset_serializer.rb', line 10 def to_attributes { plugins: serialize_plugins, config: serialize_config } end |