Module: Roo::Excel::ExcelFontExtensions
- Defined in:
- lib/roo/excel.rb
Overview
ruby-spreadsheet has a font object so we’re extending it with our own functionality but still providing full access to the user for other font information
Instance Method Summary collapse
Instance Method Details
#bold?(*args) ⇒ Boolean
226 227 228 229 |
# File 'lib/roo/excel.rb', line 226 def bold?(*args) #From ruby-spreadsheet doc: 100 <= weight <= 1000, bold => 700, normal => 400 weight == 700 end |
#italic? ⇒ Boolean
231 232 233 |
# File 'lib/roo/excel.rb', line 231 def italic? italic end |
#underline? ⇒ Boolean
235 236 237 |
# File 'lib/roo/excel.rb', line 235 def underline? underline != :none end |