Class: SilkLayout::Layout::InlineFormatter::Fragment
- Inherits:
-
Struct
- Object
- Struct
- SilkLayout::Layout::InlineFormatter::Fragment
- Defined in:
- lib/silk_layout/layout/inline_formatter.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
Returns the value of attribute box.
-
#break_after ⇒ Object
Returns the value of attribute break_after.
-
#height ⇒ Object
Returns the value of attribute height.
-
#text ⇒ Object
Returns the value of attribute text.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#box ⇒ Object
Returns the value of attribute box
6 7 8 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 6 def box @box end |
#break_after ⇒ Object
Returns the value of attribute break_after
6 7 8 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 6 def break_after @break_after end |
#height ⇒ Object
Returns the value of attribute height
6 7 8 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 6 def height @height end |
#text ⇒ Object
Returns the value of attribute text
6 7 8 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 6 def text @text end |
#width ⇒ Object
Returns the value of attribute width
6 7 8 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 6 def width @width end |
Instance Method Details
#whitespace? ⇒ Boolean
7 8 9 |
# File 'lib/silk_layout/layout/inline_formatter.rb', line 7 def whitespace? text&.match?(/\A\s+\z/) end |