Class Blueprint::SemanticClassNames
In: lib/blueprint/semantic_class_names.rb
Parent: Object

parses a hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from

Methods

Attributes

class_assignments  [RW] 
namespace  [R] 
source_file  [R] 

Public Class methods

Options

  • options
    • :namespaceNamespace to be used when matching CSS selectors to draw from
    • :source_file — Source file to use as reference of CSS selectors. Defaults to Blueprint‘s generated screen.css
    • :class_assignments — Hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from

Public Instance methods

Returns a CSS string of semantic selectors and associated styles

Options

  • assignments — Hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from; defaults to what was passed in constructor or empty hash

[Validate]