Class: Uniword::TextBox
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::TextBox
- Defined in:
- lib/uniword/text_box.rb
Overview
Represents a text box (floating text container) Can be positioned absolutely or relatively
Constant Summary collapse
- WRAPPING_STYLES =
Valid wrapping styles
%w[none square tight through topAndBottom].freeze
Instance Method Summary collapse
-
#empty? ⇒ Boolean
Check if text box is empty.
-
#initialize(**attributes) ⇒ TextBox
constructor
A new instance of TextBox.
Constructor Details
#initialize(**attributes) ⇒ TextBox
Returns a new instance of TextBox.
37 38 39 40 |
# File 'lib/uniword/text_box.rb', line 37 def initialize(**attributes) super validate_wrapping end |
Instance Method Details
#empty? ⇒ Boolean
Check if text box is empty
43 44 45 |
# File 'lib/uniword/text_box.rb', line 43 def empty? paragraphs.empty? end |