Sha256: d36a595703928826f91d9bfff14d206af3a7955502996adf256685542fd7c794
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
module Lucid module AST class Comment #:nodoc: def initialize(value) @value = value end def empty? @value.nil? || @value == "" end def accept(visitor) return if Lucid.wants_to_quit @value.strip.split("\n").each do |line| visitor.visit_comment_line(line.strip) end end def to_sexp (@value.nil? || @value == '') ? nil : [:comment, @value] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lucid-0.0.6 | lib/lucid/ast/comment.rb |
lucid-0.0.5 | lib/lucid/ast/comment.rb |