Class: Glimmer::DSL::SwtExpression
- Inherits:
-
StaticExpression
- Object
- Expression
- StaticExpression
- Glimmer::DSL::SwtExpression
- Defined in:
- lib/glimmer/dsl/swt_expression.rb
Overview
Responsible for returning SWT constant values
Named SwtExpression (not SWTExpression) 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
Methods inherited from StaticExpression
Methods inherited from Expression
#add_content, #textual?, #widget?
Instance Method Details
#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean
13 14 15 16 |
# File 'lib/glimmer/dsl/swt_expression.rb', line 13 def can_interpret?(parent, keyword, *args, &block) block.nil? && args.size > 0 end |