Sha256: e8328ece3eb5023a749fb33804e2cc5803ff18d99aae2e00a1fa87cd49f7ff2f
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require 'glimmer/dsl/expression' require 'glimmer/css/style_sheet' require 'glimmer/css/rule_set' module Glimmer module DSL module CSS class RuleSetExpression < Expression include ParentExpression def can_interpret?(parent, keyword, *args, &block) parent.is_a?(Glimmer::CSS::StyleSheet) and block_given? and args.empty? end def interpret(parent, keyword, *args, &block) Glimmer::CSS::RuleSet.new(keyword.to_s.downcase).tap do |rule_set| parent.rule_sets << rule_set end 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/rule_set_expression.rb |