Class: Clogs::Run
- Inherits:
-
Struct
- Object
- Struct
- Clogs::Run
- Defined in:
- lib/clogs/text.rb
Overview
One styled run of text inside a paragraph.
Instance Attribute Summary collapse
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#color ⇒ Object
Returns the value of attribute color.
-
#family ⇒ Object
Returns the value of attribute family.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#size ⇒ Object
Returns the value of attribute size.
-
#text ⇒ Object
Returns the value of attribute text.
-
#underline ⇒ Object
Returns the value of attribute underline.
Instance Method Summary collapse
Instance Attribute Details
#bold ⇒ Object
Returns the value of attribute bold
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def bold @bold end |
#color ⇒ Object
Returns the value of attribute color
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def color @color end |
#family ⇒ Object
Returns the value of attribute family
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def family @family end |
#italic ⇒ Object
Returns the value of attribute italic
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def italic @italic end |
#owner ⇒ Object
Returns the value of attribute owner
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def owner @owner end |
#size ⇒ Object
Returns the value of attribute size
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def size @size end |
#text ⇒ Object
Returns the value of attribute text
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def text @text end |
#underline ⇒ Object
Returns the value of attribute underline
7 8 9 |
# File 'lib/clogs/text.rb', line 7 def underline @underline end |
Instance Method Details
#style_key ⇒ Object
8 9 10 |
# File 'lib/clogs/text.rb', line 8 def style_key [size, color, family, bold, italic, underline] end |