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.
139 140 141 |
# File 'lib/roo/openoffice.rb', line 139 def bold @bold end |
#italic ⇒ Object
Returns the value of attribute italic.
139 140 141 |
# File 'lib/roo/openoffice.rb', line 139 def italic @italic end |
#underline ⇒ Object
Returns the value of attribute underline.
139 140 141 |
# File 'lib/roo/openoffice.rb', line 139 def underline @underline end |
Instance Method Details
#bold? ⇒ Boolean
141 142 143 |
# File 'lib/roo/openoffice.rb', line 141 def bold? @bold == 'bold' end |
#italic? ⇒ Boolean
145 146 147 |
# File 'lib/roo/openoffice.rb', line 145 def italic? @italic == 'italic' end |
#underline? ⇒ Boolean
149 150 151 |
# File 'lib/roo/openoffice.rb', line 149 def underline? @underline != nil end |