Class: HtmlToMarkdown::NodeContentGroup
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentGroup
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A section grouping container (auto-generated from heading hierarchy).
Instance Attribute Summary collapse
-
#heading_level ⇒ Object
readonly
Returns the value of attribute heading_level.
-
#heading_text ⇒ Object
readonly
Returns the value of attribute heading_text.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
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
#heading_level ⇒ Object (readonly)
Returns the value of attribute heading_level
948 949 950 |
# File 'lib/html_to_markdown/native.rb', line 948 def heading_level @heading_level end |
#heading_text ⇒ Object (readonly)
Returns the value of attribute heading_text
948 949 950 |
# File 'lib/html_to_markdown/native.rb', line 948 def heading_text @heading_text end |
#label ⇒ Object (readonly)
Returns the value of attribute label
948 949 950 |
# File 'lib/html_to_markdown/native.rb', line 948 def label @label end |
Class Method Details
.from_hash(hash) ⇒ Object
990 991 992 993 994 995 996 |
# File 'lib/html_to_markdown/native.rb', line 990 def self.from_hash(hash) new( label: hash[:label] || hash["label"], heading_level: hash[:heading_level] || hash["heading_level"], heading_text: hash[:heading_text] || hash["heading_text"] ) end |
Instance Method Details
#code? ⇒ Boolean
974 |
# File 'lib/html_to_markdown/native.rb', line 974 def code? = false |
#definition_item? ⇒ Boolean
980 |
# File 'lib/html_to_markdown/native.rb', line 980 def definition_item? = false |
#definition_list? ⇒ Boolean
978 |
# File 'lib/html_to_markdown/native.rb', line 978 def definition_list? = false |
#group? ⇒ Boolean
986 987 988 |
# File 'lib/html_to_markdown/native.rb', line 986 def group? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
962 |
# File 'lib/html_to_markdown/native.rb', line 962 def heading? = false |
#image? ⇒ Boolean
972 |
# File 'lib/html_to_markdown/native.rb', line 972 def image? = false |
#list? ⇒ Boolean
966 |
# File 'lib/html_to_markdown/native.rb', line 966 def list? = false |
#list_item? ⇒ Boolean
968 |
# File 'lib/html_to_markdown/native.rb', line 968 def list_item? = false |
#metadata_block? ⇒ Boolean
984 |
# File 'lib/html_to_markdown/native.rb', line 984 def = false |
#paragraph? ⇒ Boolean
964 |
# File 'lib/html_to_markdown/native.rb', line 964 def paragraph? = false |
#quote? ⇒ Boolean
976 |
# File 'lib/html_to_markdown/native.rb', line 976 def quote? = false |
#raw_block? ⇒ Boolean
982 |
# File 'lib/html_to_markdown/native.rb', line 982 def raw_block? = false |
#table? ⇒ Boolean
970 |
# File 'lib/html_to_markdown/native.rb', line 970 def table? = false |