Sha256: 555614e23359b0b79e2e02cc61dea9ac2c2d98d74b6b3a95dfd6cc82d3efcf1c

Contents?: true

Size: 484 Bytes

Versions: 14

Compression:

Stored size: 484 Bytes

Contents

require 'glimmer/dsl/expression'
require 'glimmer/css/rule'

module Glimmer
  module DSL
    module CSS
      module PropertyExpression
        include ParentExpression

        def can_interpret?(parent, keyword, *args, &block)
          parent.is_a?(Glimmer::CSS::Rule) 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

14 entries across 14 versions & 2 rubygems

Version Path
glimmer-dsl-css-0.2.0 lib/glimmer/dsl/css/property_expression.rb
glimmer-dsl-css-0.1.0 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.8.2 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.8.1 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.8.0 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.8 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.7 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.6 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.5 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.4 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.3 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.2 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.1 lib/glimmer/dsl/css/property_expression.rb
glimmer-0.7.0 lib/glimmer/dsl/css/property_expression.rb