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.



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

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



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

def italic
  @italic
end

#underlineObject

Returns the value of attribute underline.



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

def underline
  @underline
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


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

def bold?
  @bold == '1'
end

#italic?Boolean

Returns:

  • (Boolean)


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

def italic?
  @italic == '1'
end

#underline?Boolean

Returns:

  • (Boolean)


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

def underline?
  @underline != nil
end