Class: Openoffice::Font
- Inherits:
-
Object
- Object
- 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.
106 107 108 |
# File 'lib/roo/openoffice.rb', line 106 def bold @bold end |
#italic ⇒ Object
Returns the value of attribute italic.
106 107 108 |
# File 'lib/roo/openoffice.rb', line 106 def italic @italic end |
#underline ⇒ Object
Returns the value of attribute underline.
106 107 108 |
# File 'lib/roo/openoffice.rb', line 106 def underline @underline end |
Instance Method Details
#bold? ⇒ Boolean
108 109 110 |
# File 'lib/roo/openoffice.rb', line 108 def bold? @bold == 'bold' end |
#italic? ⇒ Boolean
112 113 114 |
# File 'lib/roo/openoffice.rb', line 112 def italic? @italic == 'italic' end |
#underline? ⇒ Boolean
116 117 118 |
# File 'lib/roo/openoffice.rb', line 116 def underline? @underline != nil end |