Sha256: 33038da03ff61e7ac289cf2c874352998090df61833fca3dfdfea96ff75345e3

Contents?: true

Size: 427 Bytes

Versions: 19

Compression:

Stored size: 427 Bytes

Contents

require 'glimmer/dsl/static_expression'
require 'glimmer/dsl/web/general_element_expression'

module Glimmer
  module DSL
    module Web
      class SpanExpression < StaticExpression
        include GeneralElementExpression
        
        def can_interpret?(parent, keyword, *args, &block)
          (parent.nil? ||
            (parent.respond_to?(:keyword) && parent.keyword != 'p'))
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
glimmer-dsl-web-0.6.5 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.6.4 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.6.3 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.6.2 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.6.1 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.6.0 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.5.0 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.4.4 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.4.3 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.4.2 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.4.1 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.4.0 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.3.2 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.3.1 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.3.0 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.2.8 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.2.7 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.2.4 lib/glimmer/dsl/web/span_expression.rb
glimmer-dsl-web-0.2.3 lib/glimmer/dsl/web/span_expression.rb