Class: Glimmer::DSL::SWT::ShellExpression

Inherits:
StaticExpression
  • Object
show all
Includes:
ParentExpression, TopLevelExpression
Defined in:
lib/glimmer/dsl/swt/shell_expression.rb

Direct Known Subclasses

WindowExpression

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


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

def can_interpret?(parent, keyword, *args, &block)
  super and
    (parent.nil? or parent.is_a?(Glimmer::SWT::ShellProxy))
end

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



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

def interpret(parent, keyword, *args, &block)
  args = [parent] + args unless parent.nil?
  Glimmer::SWT::ShellProxy.new(*args)
end