Class: Glimmer::DSL::SWT::FileDialogExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::SWT::FileDialogExpression
- Includes:
- ParentExpression, TopLevelExpression
- Defined in:
- lib/glimmer/dsl/swt/file_dialog_expression.rb
Instance Method Summary collapse
- #can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
- #interpret(parent, keyword, *args, &block) ⇒ Object
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
36 37 38 39 |
# File 'lib/glimmer/dsl/swt/file_dialog_expression.rb', line 36 def can_interpret?(parent, keyword, *args, &block) keyword == 'file_dialog' and (parent.nil? or parent.is_a?(Shell) or parent.is_a?(Glimmer::SWT::ShellProxy)) end |
#interpret(parent, keyword, *args, &block) ⇒ Object
41 42 43 44 |
# File 'lib/glimmer/dsl/swt/file_dialog_expression.rb', line 41 def interpret(parent, keyword, *args, &block) args = [parent] + args unless parent.nil? Glimmer::SWT::FileDialogProxy.send(:new, *args) end |