Class: Glimmer::DSL::SWT::CdtExpression
- Inherits:
-
StaticExpression
- Object
- StaticExpression
- Glimmer::DSL::SWT::CdtExpression
- Defined in:
- lib/glimmer-cw-cdatetime-nebula/ext/glimmer/dsl/swt/cdt_expression.rb
Overview
Extends Glimmer DSL to easily build CDT constant values with ‘cdt(arg)`
Named CdtExpression (not CDTExpression) 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
12 13 14 15 |
# File 'lib/glimmer-cw-cdatetime-nebula/ext/glimmer/dsl/swt/cdt_expression.rb', line 12 def can_interpret?(parent, keyword, *args, &block) block.nil? && args.size > 0 end |