Sha256: e4e222c92dfa14b748208b0f3b74ffa8554af0ea9588b4d7d401f2d18c4eca19

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

require 'glimmer/dsl/static_expression'
require 'glimmer/opal/table_proxy'

module Glimmer
  module DSL
    module Opal
      # Responsible for providing a readable keyword (command symbol) to capture
      # and return column properties for use in TreeItemsDataBindingCommandHandler
      class ColumnPropertiesExpression < StaticExpression
        def can_interpret?(parent, keyword, *args, &block)
          keyword == 'column_properties' and
            block.nil? and
            parent.is_a?(Glimmer::Opal::TableProxy)
        end
  
        def interpret(parent, keyword, *args, &block)
          args
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.0.9 lib/glimmer/dsl/opal/column_properties_expression.rb
glimmer-dsl-opal-0.0.8 lib/glimmer/dsl/opal/column_properties_expression.rb