Sha256: f80ec89cad3e731d1ca611a2027d15bf76f4ab7aec8d8fc700dd472b6f0ad921
Contents?: true
Size: 578 Bytes
Versions: 8
Compression:
Stored size: 578 Bytes
Contents
require 'glimmer' require 'glimmer/dsl/static_expression' require 'glimmer/dsl/parent_expression' require 'glimmer/swt/layout_data_proxy' # TODO consider turning static keywords like layout_data into methods module Glimmer module DSL class LayoutDataExpression < StaticExpression include ParentExpression def can_interpret?(parent, keyword, *args, &block) keyword == 'layout_data' and widget?(parent) end def interpret(parent, keyword, *args, &block) SWT::LayoutDataProxy.new(parent, args) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems