Class: Roo::Excel2003XML::Font

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boldObject

Returns the value of attribute bold.



76
77
78
# File 'lib/roo/excel2003xml.rb', line 76

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



76
77
78
# File 'lib/roo/excel2003xml.rb', line 76

def italic
  @italic
end

#underlineObject

Returns the value of attribute underline.



76
77
78
# File 'lib/roo/excel2003xml.rb', line 76

def underline
  @underline
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/roo/excel2003xml.rb', line 78

def bold?
  @bold == '1'
end

#italic?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/roo/excel2003xml.rb', line 82

def italic?
  @italic == '1'
end

#underline?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/roo/excel2003xml.rb', line 86

def underline?
  @underline != nil
end