Sha256: 21e5596cc27e6320ca4c28a84c6bc67c034871d3d97bdef98bee918d67e1ac21
Contents?: true
Size: 656 Bytes
Versions: 43
Compression:
Stored size: 656 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 module SWT # 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) Glimmer::SWT::SWTProxy[*args] end end end end end
Version data entries
43 entries across 43 versions & 2 rubygems