Class: PMLCode::Content::Parser
- Inherits:
-
Object
- Object
- PMLCode::Content::Parser
- 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
-
#initialize(raw) ⇒ Parser
constructor
A new instance of Parser.
- #result ⇒ Object
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
#result ⇒ Object
61 62 63 |
# File 'lib/pmlcode/content.rb', line 61 def result @result ||= run end |