Class: Coradoc::AsciiDoc::Model::Inline::Strikethrough
Overview
Strikethrough inline text formatting for AsciiDoc documents.
Strikethrough text is rendered with line-through role: [.line-through]#text#.
Instance Attribute Summary collapse
-
#content ⇒ String, Array<Lutaml::Model::Serializable>
readonly
The text content to format as strikethrough.
-
#text ⇒ String
readonly
Alternative text attribute (aliased to content).
-
#unconstrained ⇒ Boolean
readonly
Whether to use unconstrained formatting (default: false).
Attributes inherited from Base
Method Summary
Methods inherited from Base
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#content ⇒ String, Array<Lutaml::Model::Serializable> (readonly)
Returns The text content to format as strikethrough.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/inline/strikethrough.rb', line 25 class Strikethrough < Base attribute :content, Lutaml::Model::Serializable, default: -> { nil }, polymorphic: [ Lutaml::Model::Type::String, :array ] attribute :text, :string, default: -> { nil } attribute :unconstrained, :boolean, default: -> { false } end |
#text ⇒ String (readonly)
Returns Alternative text attribute (aliased to content).
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/inline/strikethrough.rb', line 25 class Strikethrough < Base attribute :content, Lutaml::Model::Serializable, default: -> { nil }, polymorphic: [ Lutaml::Model::Type::String, :array ] attribute :text, :string, default: -> { nil } attribute :unconstrained, :boolean, default: -> { false } end |
#unconstrained ⇒ Boolean (readonly)
Returns Whether to use unconstrained formatting (default: false).
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/coradoc/asciidoc/model/inline/strikethrough.rb', line 25 class Strikethrough < Base attribute :content, Lutaml::Model::Serializable, default: -> { nil }, polymorphic: [ Lutaml::Model::Type::String, :array ] attribute :text, :string, default: -> { nil } attribute :unconstrained, :boolean, default: -> { false } end |