Class: Glimmer::DSL::Web::SpanExpression

Inherits:
StaticExpression
  • Object
show all
Includes:
GeneralElementExpression
Defined in:
lib/glimmer/dsl/web/span_expression.rb

Instance Method Summary collapse

Methods included from GeneralElementExpression

#add_content, #interpret

Instance Method Details

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

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/glimmer/dsl/web/span_expression.rb', line 10

def can_interpret?(parent, keyword, *args, &block)
  (parent.nil? ||
    (parent.respond_to?(:keyword) && parent.keyword != 'p'))
end