Sha256: b381b4fe3c7ca8e7102acc77b6432b7eb4f7522c58046d11619bc1ba5d6ef301

Contents?: true

Size: 291 Bytes

Versions: 3

Compression:

Stored size: 291 Bytes

Contents

module Garterbelt
  class Comment < Text
    def initialize(opts)
      super
    end
    
    def template
      view.render_style == :text ? "" : "#{indent}<!-- #{content} -->#{line_end}"
    end
    
    def render
      raise_with_block_content
      output << template
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
garterbelt-0.1.0 lib/renderers/comment.rb
garterbelt-0.0.9 lib/renderers/comment.rb
garterbelt-0.0.8 lib/renderers/comment.rb