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