Class: Glimmer::DSL::Opal::FontExpression
- Inherits:
-
Expression
- Object
- Expression
- Glimmer::DSL::Opal::FontExpression
- Includes:
- TopLevelExpression
- Defined in:
- lib/glimmer/dsl/opal/font_expression.rb
Overview
font expression Note: Cannot be a static expression because it clashes with font property expression
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
34 35 36 37 38 39 |
# File 'lib/glimmer/dsl/opal/font_expression.rb', line 34 def can_interpret?(parent, keyword, *args, &block) keyword.to_s == 'font' and (parent.nil? || !parent.respond_to?('font')) and args.size == 1 and args.first.is_a?(Hash) end |