Sha256: ed419c06b3a147882fcdf983b1ef3e1e20183129245a9dc77d5e1da632e2a9a0

Contents?: true

Size: 650 Bytes

Versions: 30

Compression:

Stored size: 650 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
    module SWT
      class LayoutDataExpression < StaticExpression
        include ParentExpression
  
        def can_interpret?(parent, keyword, *args, &block)
          keyword == 'layout_data' and
            parent.respond_to?(:swt_widget)
        end
  
        def interpret(parent, keyword, *args, &block)
          Glimmer::SWT::LayoutDataProxy.new(parent, args)
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
glimmer-dsl-swt-0.6.9 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.8 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.7 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.6 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.5 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.4 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.3 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.2 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.1 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.6.0 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.6 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.5 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.4 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.3 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.2 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.1 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.5.0 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.4.1 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.4.0 lib/glimmer/dsl/swt/layout_data_expression.rb
glimmer-dsl-swt-0.3.1 lib/glimmer/dsl/swt/layout_data_expression.rb