Class: Roo::OpenOffice::Font
- Inherits:
-
Object
- Object
- Roo::OpenOffice::Font
- Defined in:
- lib/roo/openoffice.rb
Instance Attribute Summary collapse
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#underline ⇒ Object
Returns the value of attribute underline.
Instance Method Summary collapse
Instance Attribute Details
#bold ⇒ Object
Returns the value of attribute bold.
119 120 121 |
# File 'lib/roo/openoffice.rb', line 119 def bold @bold end |
#italic ⇒ Object
Returns the value of attribute italic.
119 120 121 |
# File 'lib/roo/openoffice.rb', line 119 def italic @italic end |
#underline ⇒ Object
Returns the value of attribute underline.
119 120 121 |
# File 'lib/roo/openoffice.rb', line 119 def underline @underline end |
Instance Method Details
#bold? ⇒ Boolean
121 122 123 |
# File 'lib/roo/openoffice.rb', line 121 def bold? @bold == 'bold' end |
#italic? ⇒ Boolean
125 126 127 |
# File 'lib/roo/openoffice.rb', line 125 def italic? @italic == 'italic' end |
#underline? ⇒ Boolean
129 130 131 |
# File 'lib/roo/openoffice.rb', line 129 def underline? @underline != nil end |