Class: Roo::Excel2003XML::Font

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boldObject

Returns the value of attribute bold.



61
62
63
# File 'lib/roo/xls/excel_2003_xml.rb', line 61

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



61
62
63
# File 'lib/roo/xls/excel_2003_xml.rb', line 61

def italic
  @italic
end

#underlineObject

Returns the value of attribute underline.



61
62
63
# File 'lib/roo/xls/excel_2003_xml.rb', line 61

def underline
  @underline
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/roo/xls/excel_2003_xml.rb', line 63

def bold?
  @bold == '1'
end

#italic?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/roo/xls/excel_2003_xml.rb', line 67

def italic?
  @italic == '1'
end

#underline?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/roo/xls/excel_2003_xml.rb', line 71

def underline?
  @underline != nil
end