Sha256: 11f2e086c742b3d36c774b93f7b9e9d2616f188f3760f2de166cbe99c7ae286a

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

require_relative "gadgets"

module Marko

  # The class for pasing content into TreeNode
  class Parser
    extend Pluggable

    # @param content [String] content to parse
    # @param source [String] content source
    # @return [Array<TreeNode>, Array<String>] parsed nodes, errors
    def call(content, source, &block)
      fail "the abstract method must be overriden"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marko-0.3.0 lib/marko/parser.rb
marko-0.1.0 lib/marko/parser.rb