lib/osheet/xmlss_writer.rb
def style(style_class, format=nil)
      xs = @style_cache.get(
        style_class,
        format || Osheet::Format.new(:general)
      )
      @xmlss_workbook.style_id(xs.id) if xs
      xs
    end
# given an elements style_class or format attributes:
# 1) write a new xmlss style object and
# 2) set the current element's style_id attribute
given an elements style_class or format attributes:
1) write a new xmlss style object and
2) set the current element's style_id attribute
given an elements style_class or format attributes : 1 ) write a new xmlss style object and 2 ) set the current element ' s style_id attribute
def style(style_class, format=nil)
      xs = @style_cache.get(
        style_class,
        format || Osheet::Format.new(:general)
      )
      @xmlss_workbook.style_id(xs.id) if xs
      xs
    end
def style ( style_class , format = nil ) xs = @style_cache . get ( style_class , format || Osheet :: Format . new ( :general ) ) @xmlss_workbook . style_id ( xs . id ) if xs xs end
given an elements style_class or format attributes:
1) write a new xmlss style object and
2) set the current element's style_id attribute
given an elements style_class or format attributes : 1 ) write a new xmlss style object and 2 ) set the current element ' s style_id attribute
style_class
format