Sha256: 9fffd7fb940ba290082a489b5209aa2082dbae7ab2ba3a24d431b94dd2fc8b16

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

module Giblish
  class AdocSrcItf
    def adoc_source(src_node, dst_node, dst_top)
      raise NotImplementedError
    end
  end

  class SrcFromFile < AdocSrcItf
    def adoc_source(src_node, dst_node, dst_top)
      File.read(src_node.pathname)
    end
  end

  class SrcFromString < AdocSrcItf
    def initialize(src_str)
      @adoc_source = src_str
    end

    def adoc_source(src_node, dst_node, dst_top)
      @adoc_source
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
giblish-2.2.2 lib/giblish/adocsrc_providers.rb
giblish-2.2.1 lib/giblish/adocsrc_providers.rb
giblish-2.2.0 lib/giblish/adocsrc_providers.rb
giblish-2.1.2 lib/giblish/adocsrc_providers.rb
giblish-2.1.1 lib/giblish/adocsrc_providers.rb
giblish-2.1.0 lib/giblish/adocsrc_providers.rb
giblish-2.0.1 lib/giblish/adocsrc_providers.rb
giblish-2.0.0 lib/giblish/adocsrc_providers.rb
giblish-2.0.0.pre.alpha1 lib/giblish/adocsrc_providers.rb
giblish-1.0.0 lib/giblish/adocsrc_providers.rb
giblish-1.0.0.rc2 lib/giblish/adocsrc_providers.rb