Sha256: 3df0806d88226e117e4ca8893c5fecf11abc6155bff434651875f5ad627a20e6

Contents?: true

Size: 290 Bytes

Versions: 10

Compression:

Stored size: 290 Bytes

Contents

module Source2MD
  module Formatter
    class TypeRawInclude < Base
      def self.accept?(element)
        element.head["raw_include"]
      end

      def to_md
        s = Pathname(element.head["raw_include"]).expand_path.read
        TextHelper.eol_enter(s)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
source2md-0.0.19 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.18 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.17 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.16 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.15 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.14 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.13 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.12 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.11 lib/source2md/formatter/type_raw_include.rb
source2md-0.0.10 lib/source2md/formatter/type_raw_include.rb