Sha256: c2dc4e4ba019ae5827e723f6a25633936b7ece266c258e6adca8742ed9ca198b

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require 'glimmer/dsl/expression'

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

        def can_interpret?(parent, keyword, *args, &block)          
          parent and keyword and block.nil?
        end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.0.2 lib/glimmer/dsl/opal/property_expression.rb