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.



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

def bold
  @bold
end

#italicObject

Returns the value of attribute italic.



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

def italic
  @italic
end

#underlineObject

Returns the value of attribute underline.



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

def underline
  @underline
end

Instance Method Details

#bold?Boolean

Returns:

  • (Boolean)


84
85
86
# File 'lib/roo/excel2003xml.rb', line 84

def bold? 
  @bold == 'bold'
end

#italic?Boolean

Returns:

  • (Boolean)


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

def italic? 
  @italic == 'italic'
end

#underline?Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/roo/excel2003xml.rb', line 92

def underline? 
  @underline != nil
end