class Crek::Styles
Attributes
book[RW]
Public Class Methods
new(book)
click to toggle source
# File lib/crek/styles.rb, line 4 def initialize(book) @book = book end
Public Instance Methods
path()
click to toggle source
# File lib/crek/styles.rb, line 8 def path "xl/styles.xml" end
style_types()
click to toggle source
# File lib/crek/styles.rb, line 21 def style_types @style_types ||= begin Crek::Styles::StyleTypes.new(styles_xml).call end end
styles_xml()
click to toggle source
# File lib/crek/styles.rb, line 12 def styles_xml @styles_xml ||= begin if @book.files.file.exist?(path) doc = @book.files.file.open path Nokogiri::XML::Document.parse doc end end end