Class: Glimmer::DSL::Opal::BlockPropertyExpression
- Inherits:
-
Expression
- Object
- Expression
- Glimmer::DSL::Opal::BlockPropertyExpression
- Defined in:
- lib/glimmer/dsl/opal/block_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
28 29 30 31 32 |
# File 'lib/glimmer/dsl/opal/block_property_expression.rb', line 28 def can_interpret?(parent, keyword, *args, &block) block_given? and args.size == 0 and parent.respond_to?("#{keyword}_block=") end |
#interpret(parent, keyword, *args, &block) ⇒ Object
34 35 36 37 |
# File 'lib/glimmer/dsl/opal/block_property_expression.rb', line 34 def interpret(parent, keyword, *args, &block) parent.send("#{keyword}_block=", block) nil end |