Class: Glimmer::DSL::Web::ShineDataBindingExpression
- Inherits:
-
Expression
- Object
- Expression
- Glimmer::DSL::Web::ShineDataBindingExpression
- Defined in:
- lib/glimmer/dsl/web/shine_data_binding_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
30 31 32 33 34 |
# File 'lib/glimmer/dsl/web/shine_data_binding_expression.rb', line 30 def can_interpret?(parent, keyword, *args, &block) args.size == 0 and block.nil? and (parent.respond_to?("#{keyword}=") and parent.respond_to?(keyword)) end |
#interpret(parent, keyword, *args, &block) ⇒ Object
36 37 38 |
# File 'lib/glimmer/dsl/web/shine_data_binding_expression.rb', line 36 def interpret(parent, keyword, *args, &block) Glimmer::DataBinding::Shine.new(parent, keyword) end |