Class: CKEditor5::Rails::Context::PresetSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/ckeditor5/rails/context/preset_serializer.rb

Instance Method Summary collapse

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_attributesObject



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