Sha256: ad6ccaab79e0a807c82ae6caec756c64d00df5e999fa012aef8db28ec5832414

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

require 'faml/filter_compilers/base'

module Faml
  module FilterCompilers
    class Ruby < Base
      def need_newline?
        false
      end

      def compile(texts)
        [:multi, [:newline], [:code, strip_last_empty_lines(texts).join("\n")]]
      end
    end

    register(:ruby, Ruby)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
faml-0.2.6 lib/faml/filter_compilers/ruby.rb
faml-0.2.5 lib/faml/filter_compilers/ruby.rb
faml-0.2.4 lib/faml/filter_compilers/ruby.rb
faml-0.2.3 lib/faml/filter_compilers/ruby.rb
faml-0.2.2 lib/faml/filter_compilers/ruby.rb
faml-0.2.1 lib/faml/filter_compilers/ruby.rb
faml-0.2.0 lib/faml/filter_compilers/ruby.rb