Class: Glimmer::DSL::SWT::TreePropertiesExpression

Inherits:
StaticExpression
  • Object
show all
Defined in:
lib/glimmer/dsl/swt/tree_properties_expression.rb

Overview

Responsible for providing a readable keyword (command symbol) to capture and return tree properties for use in TreeItemsDataBindingCommandHandler

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


34
35
36
37
38
39
# File 'lib/glimmer/dsl/swt/tree_properties_expression.rb', line 34

def can_interpret?(parent, keyword, *args, &block)
  keyword == "tree_properties" and
    block.nil? and
    parent.respond_to?(:swt_widget) and
    parent.swt_widget.is_a?(Tree)
end

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



41
42
43
# File 'lib/glimmer/dsl/swt/tree_properties_expression.rb', line 41

def interpret(parent, keyword, *args, &block)
  args
end