Class: Glimmer::DSL::Libui::ShineDataBindingExpression

Inherits:
Expression
  • Object
show all
Defined in:
lib/glimmer/dsl/libui/shine_data_binding_expression.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


30
31
32
33
34
35
# File 'lib/glimmer/dsl/libui/shine_data_binding_expression.rb', line 30

def can_interpret?(parent, keyword, *args, &block)
  keyword != 'content' and
    args.size == 0 and
    block.nil? and
    parent.respond_to?(keyword, *args, &block)
end

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



37
38
39
# File 'lib/glimmer/dsl/libui/shine_data_binding_expression.rb', line 37

def interpret(parent, keyword, *args, &block)
  Glimmer::DataBinding::Shine.new(parent, keyword)
end