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