Class: Glimmer::DSL::SWT::ShellExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::SWT::ShellExpression
- Includes:
- ParentExpression, TopLevelExpression
- Defined in:
- lib/glimmer/dsl/swt/shell_expression.rb
Direct Known Subclasses
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
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 |