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