Module: Glimmer::DSL::CSS::GeneralRuleExpression
- Includes:
- ParentExpression
- Included in:
- RuExpression, RulExpression, RuleExpression, SExpression
- Defined in:
- lib/glimmer/dsl/css/general_rule_expression.rb
Instance Method Summary collapse
- #can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
- #interpret(parent, keyword, *args, &block) ⇒ Object
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
32 33 34 35 36 37 38 39 40 |
# File 'lib/glimmer/dsl/css/general_rule_expression.rb', line 32 def can_interpret?(parent, keyword, *args, &block) super(parent, keyword, *args, &block) and ( parent.is_a?(Glimmer::CSS::StyleSheet) or parent.is_a?(Glimmer::CSS::MediaQuery) ) and block_given? and !args.empty? end |