Sha256: 2a08fe073e3a476c55bfc8791e6a612282a0bca0d9fac99b54ef3696f78606f8
Contents?: true
Size: 596 Bytes
Versions: 11
Compression:
Stored size: 596 Bytes
Contents
require 'glimmer/dsl/static_expression' require 'glimmer/swt/swt_proxy' # TODO consider turning static keywords like bind into methods module Glimmer module DSL # Responsible for returning SWT constant values # # Named SwtExpression (not SWTExpression) so that the DSL engine # discovers quickly by convention class SwtExpression < StaticExpression def can_interpret?(parent, keyword, *args, &block) block.nil? && args.size > 0 end def interpret(parent, keyword, *args, &block) SWT::SWTProxy[*args] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems