Sha256: b980f37c5bd9d0acc3309d936ef94af5c4712f804e5667e6569652319a3743b3

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

require 'glimmer/dsl/expression'
require 'glimmer/css/rule_set'

module Glimmer
  module DSL
    module CSS
      class PropertyExpression < Expression
        include ParentExpression

        def can_interpret?(parent, keyword, *args, &block)
          parent.is_a?(Glimmer::CSS::RuleSet) and
            !block_given? and
            !args.empty?
        end

        def interpret(parent, keyword, *args, &block)
          parent.add_property(keyword, *args)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glimmer-0.6.0 lib/glimmer/dsl/css/property_expression.rb