Class: Glimmer::DSL::SWT::DndExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::SWT::DndExpression
- Defined in:
- lib/glimmer/dsl/swt/dnd_expression.rb
Overview
Responsible for returning DND constant values
Named DndExpression (not DNDExpression) so that the DSL engine discovers quickly by convention
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
35 36 37 38 |
# File 'lib/glimmer/dsl/swt/dnd_expression.rb', line 35 def can_interpret?(parent, keyword, *args, &block) block.nil? && args.size > 0 end |