Class: 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.



88
89
90
# File 'lib/roo/excel2003xml.rb', line 88

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



88
89
90
# File 'lib/roo/excel2003xml.rb', line 88

def italic
  @italic
end

#underlineObject

Returns the value of attribute underline.



88
89
90
# File 'lib/roo/excel2003xml.rb', line 88

def underline
  @underline
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/roo/excel2003xml.rb', line 90

def bold? 
  @bold == '1'
end

#italic?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/roo/excel2003xml.rb', line 94

def italic? 
  @italic == '1'
end

#underline?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/roo/excel2003xml.rb', line 98

def underline? 
  @underline != nil
end