Class: PandaCms::EditorJs::Blocks::Base
- Inherits:
-
Object
- Object
- PandaCms::EditorJs::Blocks::Base
- Defined in:
- app/lib/panda_cms/editor_js/blocks/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(data, options = {}) ⇒ Base
constructor
A new instance of Base.
- #render ⇒ Object
Constructor Details
permalink #initialize(data, options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 7 def initialize(data, = {}) @data = data @options = end |
Instance Attribute Details
permalink #data ⇒ Object (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 |
permalink #options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 5 def @options end |
Instance Method Details
permalink #render ⇒ Object
[View source]
12 13 14 |
# File 'app/lib/panda_cms/editor_js/blocks/base.rb', line 12 def render "" end |