Class: PandaCms::EditorJs::Blocks::Base

Inherits:
Object
  • Object
show all
Defined in:
app/lib/panda_cms/editor_js/blocks/base.rb

Direct Known Subclasses

Alert, Header, Image, List, Paragraph, Quote, Table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, options = {}) ⇒ Base

Returns a new instance of Base.

[View source]

7
8
9
10
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 7

def initialize(data, options = {})
  @data = data
  @options = options
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.


5
6
7
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 5

def data
  @data
end

#optionsObject (readonly)

Returns the value of attribute options.


5
6
7
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 5

def options
  @options
end

Instance Method Details

#renderObject

[View source]

12
13
14
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 12

def render
  ""
end