Sha256: 093b0584c7eb0161301a8a981e5057ce96fca30cebb4b1a030b283cd9768e582
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
# @Opulent module Opulent # @Compiler class Compiler # Generate the code for a while control structure # # @param node [Array] Node code generation data # @param indent [Fixnum] Size of the indentation to be added # def comment(node, indent) buffer_freeze "\n" if node[@options][:newline] if @settings[:pretty] if @in_definition buffer "' ' * (indent + #{indent})" else buffer_freeze " " * indent end end buffer_freeze '<!-- ' buffer_split_by_interpolation node[@value].strip, false buffer_freeze ' -->' buffer_freeze "\n" if @settings[:pretty] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opulent-1.8.5 | lib/opulent/compiler/comment.rb |
opulent-1.8.4 | lib/opulent/compiler/comment.rb |
opulent-1.8.3 | lib/opulent/compiler/comment.rb |
opulent-1.8.2 | lib/opulent/compiler/comment.rb |