Sha256: a635d9058587bfed444f86ddacd48a15a75c7609326986546ed52b2cad154df7
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
require 'glimmer/dsl/static_expression' require 'glimmer/css/style_sheet' require 'glimmer/css/rule_set' module Glimmer module DSL module CSS class PExpression < StaticExpression include ParentExpression def can_interpret?(parent, keyword, *args, &block) keyword == 'p' and parent.is_a?(Glimmer::CSS::RuleSet) and !block_given? and !args.empty? and args.size > 1 end def interpret(parent, keyword, *args, &block) parent.add_property(args[0], args[1]) 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/p_expression.rb |