Class: Glimmer::DSL::SWT::ColumnPropertiesExpression

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

Overview

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

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


32
33
34
35
36
37
# File 'lib/glimmer/dsl/swt/column_properties_expression.rb', line 32

def can_interpret?(parent, keyword, *args, &block)
  keyword == 'column_properties' and
    block.nil? and
    parent.respond_to?(:swt_widget) and
    parent.swt_widget.is_a?(Table)
end

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



39
40
41
# File 'lib/glimmer/dsl/swt/column_properties_expression.rb', line 39

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