Sha256: fd115b3c03c7a80d25467558524410fbcc0fbd5b25061bd852d6c7607cb7e306

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

module Parade
  class Metadata

    #
    # By default the CSS Class metadata parser is a catch all parser that will
    # use all the terms and create CSS classes.
    # 
    class CSSClasses

      def match?(term)
        true
      end

      def apply(term,hash)
        (hash[:classes] ||= []) << term
        hash
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
parade-0.10.2 lib/parade/metadata/css_classes.rb
parade-0.10.1 lib/parade/metadata/css_classes.rb
parade-0.10.0 lib/parade/metadata/css_classes.rb
parade-0.9.2 lib/parade/metadata/css_classes.rb
parade-0.9.1 lib/parade/metadata/css_classes.rb
parade-0.9.0 lib/parade/metadata/css_classes.rb
parade-0.8.2 lib/parade/metadata/css_classes.rb
parade-0.8.1 lib/parade/metadata/css_classes.rb
parade-0.8.0 lib/parade/metadata/css_classes.rb