Class: Panda::Editor::Blocks::Base

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::SanitizeHelper, ActionView::Helpers::TagHelper
Defined in:
lib/panda/editor/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.



12
13
14
15
# File 'lib/panda/editor/blocks/base.rb', line 12

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

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/panda/editor/blocks/base.rb', line 10

def data
  @data
end

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/panda/editor/blocks/base.rb', line 10

def options
  @options
end

Instance Method Details

#renderObject



17
18
19
# File 'lib/panda/editor/blocks/base.rb', line 17

def render
  ''
end