Class: Glimmer::DSL::Web::FormattingElementExpression

Inherits:
Expression
  • Object
show all
Defined in:
lib/glimmer/dsl/web/formatting_element_expression.rb

Instance Method Summary collapse

Instance Method Details

#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/glimmer/dsl/web/formatting_element_expression.rb', line 9

def can_interpret?(parent, keyword, *args, &block)
  Glimmer::Web::FormattingElementProxy.keyword_supported?(keyword, parent: parent)
end

#interpret(parent, keyword, *args, &block) ⇒ Object



13
14
15
# File 'lib/glimmer/dsl/web/formatting_element_expression.rb', line 13

def interpret(parent, keyword, *args, &block)
  Glimmer::Web::FormattingElementProxy.format(keyword, *args, &block)
end