Class: HtmlToMarkdown::NodeContentParagraph
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentParagraph
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A paragraph of text.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #code? ⇒ Boolean
- #definition_item? ⇒ Boolean
- #definition_list? ⇒ Boolean
- #group? ⇒ Boolean
- #heading? ⇒ Boolean
- #image? ⇒ Boolean
- #list? ⇒ Boolean
- #list_item? ⇒ Boolean
- #metadata_block? ⇒ Boolean
- #paragraph? ⇒ Boolean
- #quote? ⇒ Boolean
- #raw_block? ⇒ Boolean
- #table? ⇒ Boolean
Instance Attribute Details
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
133 134 135 |
# File 'lib/html_to_markdown/native.rb', line 133 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
170 171 172 |
# File 'lib/html_to_markdown/native.rb', line 170 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
154 |
# File 'lib/html_to_markdown/native.rb', line 154 def code? = false |
#definition_item? ⇒ Boolean
160 |
# File 'lib/html_to_markdown/native.rb', line 160 def definition_item? = false |
#definition_list? ⇒ Boolean
158 |
# File 'lib/html_to_markdown/native.rb', line 158 def definition_list? = false |
#group? ⇒ Boolean
166 167 168 |
# File 'lib/html_to_markdown/native.rb', line 166 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
142 |
# File 'lib/html_to_markdown/native.rb', line 142 def heading? = false |
#image? ⇒ Boolean
152 |
# File 'lib/html_to_markdown/native.rb', line 152 def image? = false |
#list? ⇒ Boolean
146 |
# File 'lib/html_to_markdown/native.rb', line 146 def list? = false |
#list_item? ⇒ Boolean
148 |
# File 'lib/html_to_markdown/native.rb', line 148 def list_item? = false |
#metadata_block? ⇒ Boolean
164 |
# File 'lib/html_to_markdown/native.rb', line 164 def = false |
#paragraph? ⇒ Boolean
144 |
# File 'lib/html_to_markdown/native.rb', line 144 def paragraph? = true |
#quote? ⇒ Boolean
156 |
# File 'lib/html_to_markdown/native.rb', line 156 def quote? = false |
#raw_block? ⇒ Boolean
162 |
# File 'lib/html_to_markdown/native.rb', line 162 def raw_block? = false |
#table? ⇒ Boolean
150 |
# File 'lib/html_to_markdown/native.rb', line 150 def table? = false |