Sha256: 4f6ada7e5efe1b0dd8b6d5879552bcb77587418c6df29a2835001616067d20d5

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

require 'gemtext/version'
require 'gemtext/parser'
require 'stringio'

module Gemtext
  class Error < StandardError; end

  def self.parse(data)
    io = data
    io = StringIO.new(data) if data.instance_of? String
    parser = Parser.new(io)
    parser.parse
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemtext-1.0.3 lib/gemtext.rb
gemtext-1.0.2 lib/gemtext.rb
gemtext-1.0.1 lib/gemtext.rb