Class: Openoffice::Font

Inherits:
Object
  • Object
show all
Defined in:
lib/roo/openoffice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boldObject

Returns the value of attribute bold.



106
107
108
# File 'lib/roo/openoffice.rb', line 106

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



106
107
108
# File 'lib/roo/openoffice.rb', line 106

def italic
  @italic
end

#underlineObject

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

Returns:

  • (Boolean)


108
109
110
# File 'lib/roo/openoffice.rb', line 108

def bold? 
  @bold == 'bold'
end

#italic?Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/roo/openoffice.rb', line 112

def italic? 
  @italic == 'italic'
end

#underline?Boolean

Returns:

  • (Boolean)


116
117
118
# File 'lib/roo/openoffice.rb', line 116

def underline? 
  @underline != nil
end