Sha256: fb269e2ffc8f9ce7bb58d4282e59e49f623515d1bc5d453fda269b263ccea149
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'wparser/inline/heading' require 'wparser/inline/strong' require 'wparser/inline/italic' require 'wparser/inline/underLine' require 'wparser/inline/deleted' require 'wparser/inline/http' module Inline include Heading include Strong include Italic include UnderLine include Deleted include Http def parse text parse_text = "" text.each do |line| parse_line = Heading.parse(line) parse_line = Strong.parse(parse_line) parse_line = Italic.parse(parse_line) parse_line = UnderLine.parse(parse_line) parse_line = Deleted.parse(parse_line) parse_text << parse_line end parse_text = Http.parse(parse_text) parse_text end module_function :parse end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wparser-0.0.2 | lib/wparser/inline/inline.rb |