Sha256: f426aaf09fd9b1bb9a75feebd957a0abc733c1fa9cc15a0c56997a0d9b380a37

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

require 'glimmer/opal/property_owner'

module Glimmer
  module Opal
    class LayoutDataProxy
      include PropertyOwner
      attr_reader :parent, :args, :horizontal_alignment, :grab_excess_horizontal_space
    
      def initialize(parent, args)
        @parent = parent
        @args = args
        reapply
      end

      def horizontal_alignment=(horizontal_alignment)
        @horizontal_alignment = horizontal_alignment
        reapply
      end
      
      def grab_excess_horizontal_space=(grab_excess_horizontal_space)
        @grab_excess_horizontal_space = grab_excess_horizontal_space
        reapply
      end

      def reapply
#         @parent.css = <<~CSS
#         CSS
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.0.7 lib/glimmer/opal/layout_data_proxy.rb
glimmer-dsl-opal-0.0.6 lib/glimmer/opal/layout_data_proxy.rb