Sha256: 90218fb8f2ba6bf31e6bc721e642750f9dd04a4693c4c33cc305e16eccab3c32
Contents?: true
Size: 343 Bytes
Versions: 12
Compression:
Stored size: 343 Bytes
Contents
module SpecHelpers class << self def styling_of_node(node) if node and node['style'].present? parse_styling(node['style']) else [] end end def parse_styling(styles) styles.split(';').inject([]) do |array, item| array << item.split(':', 2).map(&:strip) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems