Class: Hotchoc::Blocks::Text
- Inherits:
-
Base
show all
- Defined in:
- lib/hotchoc/blocks/text.rb
Instance Attribute Summary
#item
Instance Method Summary
collapse
Methods inherited from Base
#created_at, #id, #position, #type, #updated_at
#initialize
Constructor Details
This class inherits a constructor from Hotchoc::Base
Instance Method Details
#html ⇒ Object
8
9
10
|
# File 'lib/hotchoc/blocks/text.rb', line 8
def html
@item['content']['html']
end
|
#inspect ⇒ Object
12
13
14
|
# File 'lib/hotchoc/blocks/text.rb', line 12
def inspect
%(#<Hotchoc::Blocks::Text: position="#{position}">)
end
|
#markdown ⇒ Object
4
5
6
|
# File 'lib/hotchoc/blocks/text.rb', line 4
def markdown
@item['content']['markdown']
end
|