Sha256: 3ff7e7376c198b51043c46f90776ea388aa2c8e569ed8728e415881b8e233a6d

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

require 'wparser/util/break'
require 'wparser/inline/inline'
require 'wparser/block/block'

class Parser
  def parse text
    parse_all text
  end

  private
  def parse_all text
    parse_text = text

    parse_text = Break.parse  parse_text
    parse_text = Block.parse  parse_text
    parse_text = Inline.parse parse_text # <p>の為にblockよりも後に!
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wparser-0.1.3 lib/wparser/parser.rb
wparser-0.1.2 lib/wparser/parser.rb
wparser-0.1.1 lib/wparser/parser.rb
wparser-0.1.0 lib/wparser/parser.rb