Class: Glimmer::DSL::SWT::LayoutDataExpression

Inherits:
Glimmer::DSL::StaticExpression show all
Includes:
ParentExpression
Defined in:
lib/glimmer/dsl/swt/layout_data_expression.rb

Instance Method Summary collapse

Methods included from ParentExpression

#add_content

Methods inherited from Glimmer::DSL::StaticExpression

inherited, keyword

Methods inherited from Expression

#add_content, dsl, #textual?, #widget?

Instance Method Details

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

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/glimmer/dsl/swt/layout_data_expression.rb', line 14

def can_interpret?(parent, keyword, *args, &block)
  keyword == 'layout_data' and
    widget?(parent)
end

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



19
20
21
# File 'lib/glimmer/dsl/swt/layout_data_expression.rb', line 19

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