class PrawnHtml::Attributes

def merge_text_styles!(text_styles, options: {})

Parameters:
  • options (Hash) -- options (container width/height/etc.)
  • text_styles (String) -- styles to parse and process
def merge_text_styles!(text_styles, options: {})
  hash_styles = Attributes.parse_styles(text_styles)
  process_styles(hash_styles, options: options) unless hash_styles.empty?
end