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