Class: PMLCode::Content::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/pmlcode/content.rb

Constant Summary collapse

PART_START =
/START:\s?(\S+)/
PART_END =
/END:\s?(\S+)/
HL_START =
/START_HIGHLIGHT/
HL_END =
/END_HIGHLIGHT/

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Parser

Returns a new instance of Parser.



57
58
59
# File 'lib/pmlcode/content.rb', line 57

def initialize(raw)
  @raw = raw
end

Instance Method Details

#resultObject



61
62
63
# File 'lib/pmlcode/content.rb', line 61

def result
  @result ||= run
end