Class: Glimmer::DSL::Opal::PropertyExpression

Inherits:
StaticExpression show all
Includes:
TopLevelExpression
Defined in:
lib/glimmer/dsl/opal/property_expression.rb

Instance Method Summary collapse

Methods inherited from StaticExpression

inherited, keyword

Methods inherited from Expression

#add_content, dsl, #textual?

Instance Method Details

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/glimmer/dsl/opal/property_expression.rb', line 9

def can_interpret?(parent, keyword, *args, &block)          
  keyword.to_s == 'text'
end

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



13
14
15
# File 'lib/glimmer/dsl/opal/property_expression.rb', line 13

def interpret(parent, keyword, *args, &block)
  parent.text = args.first.to_s
end