Class: Hotchoc::Blocks::Text

Inherits:
Base show all
Defined in:
lib/hotchoc/blocks/text.rb

Instance Attribute Summary

Attributes inherited from Hotchoc::Base

#item

Instance Method Summary collapse

Methods inherited from Base

#created_at, #id, #position, #type, #updated_at

Methods inherited from Hotchoc::Base

#initialize

Constructor Details

This class inherits a constructor from Hotchoc::Base

Instance Method Details

#htmlObject



8
9
10
# File 'lib/hotchoc/blocks/text.rb', line 8

def html
  @item['content']['html']
end

#inspectObject



12
13
14
# File 'lib/hotchoc/blocks/text.rb', line 12

def inspect
  %(#<Hotchoc::Blocks::Text: position="#{position}">)
end

#markdownObject



4
5
6
# File 'lib/hotchoc/blocks/text.rb', line 4

def markdown
  @item['content']['markdown']
end