Sha256: badf4c3172fe103e72cf4f3abeb44cb4e79fc10a37168f64b570f31a9d983a81

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

require 'glimmer/dsl/expression'

module Glimmer
  module DSL
    module Opal
      class PropertyExpression < StaticExpression
        include TopLevelExpression

        def can_interpret?(parent, keyword, *args, &block)          
          keyword.to_s == 'text'
        end

        def interpret(parent, keyword, *args, &block)
          parent.text = args.first.to_s
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
glimmer-dsl-css-0.1.0 lib/glimmer/dsl/opal/property_expression.rb
glimmer-dsl-opal-0.0.1 lib/glimmer/dsl/opal/property_expression.rb