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