Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Refactor: Extract code segmenting to it's own class #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maxlinc
Copy link
Contributor

@maxlinc maxlinc commented May 22, 2014

This is a possible answer for #104. Even if it's not the best solution, it should give you an idea of what I had in mind for #104.

This mostly moves the Rocco#parse method (and some related code) to a new class: Rocco::CodeSegmenter. This class does not do anything related to Markdown rendering, syntax highlighting, or writing HTML. So it would be easier to re-use this for other purposes, like the cases I described in #104.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant