Class: Xlsxrb::Elements::RichText
- Inherits:
-
Data
- Object
- Data
- Xlsxrb::Elements::RichText
- Defined in:
- lib/xlsxrb/elements/types.rb,
sig/generated/xlsxrb/elements/types.rbs
Overview
Represents a rich text string with multiple formatting runs.
Instance Attribute Summary collapse
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
Class Method Summary collapse
Instance Method Summary collapse
- #members ⇒ [ :runs ]
-
#to_s ⇒ String
Returns concatenated plain text of all runs.
Instance Attribute Details
#runs ⇒ Object (readonly)
Returns the value of attribute runs
62 63 64 |
# File 'lib/xlsxrb/elements/types.rb', line 62 def runs @runs end |
Class Method Details
.members ⇒ [ :runs ]
77 |
# File 'sig/generated/xlsxrb/elements/types.rbs', line 77
def self.members: () -> [ :runs ]
|
.new(runs) ⇒ instance .new(runs:) ⇒ instance
74 75 |
# File 'sig/generated/xlsxrb/elements/types.rbs', line 74
def self.new: (untyped runs) -> instance
| (runs: untyped) -> instance
|
Instance Method Details
#members ⇒ [ :runs ]
79 |
# File 'sig/generated/xlsxrb/elements/types.rbs', line 79
def members: () -> [ :runs ]
|
#to_s ⇒ String
Returns concatenated plain text of all runs.
68 69 70 |
# File 'lib/xlsxrb/elements/types.rb', line 68 def to_s runs.map { |r| r[:text] }.join end |