Module: Glimmer::DSL::CSS::PropertyExpression
- Includes:
- ParentExpression
- Included in:
- DisplayExpression, DynamicPropertyExpression, PVExpression
- Defined in:
- lib/glimmer/dsl/css/property_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
31 32 33 34 35 |
# File 'lib/glimmer/dsl/css/property_expression.rb', line 31 def can_interpret?(parent, keyword, *args, &block) !block_given? and !args.empty? and parent.is_a?(Glimmer::CSS::Rule) end |
#interpret(parent, keyword, *args, &block) ⇒ Object
37 38 39 |
# File 'lib/glimmer/dsl/css/property_expression.rb', line 37 def interpret(parent, keyword, *args, &block) parent.add_property(keyword, *args) end |