Module: Mustermann::Visualizer
- Extended by:
- Visualizer
- Included in:
- Visualizer
- Defined in:
- lib/mustermann/visualizer.rb,
lib/mustermann/visualizer/tree.rb,
lib/mustermann/visualizer/highlight.rb,
lib/mustermann/visualizer/highlighter.rb,
lib/mustermann/visualizer/renderer/ansi.rb,
lib/mustermann/visualizer/renderer/html.rb,
lib/mustermann/visualizer/renderer/sexp.rb,
lib/mustermann/visualizer/tree_renderer.rb,
lib/mustermann/visualizer/highlighter/ast.rb,
lib/mustermann/visualizer/renderer/generic.rb,
lib/mustermann/visualizer/highlighter/dummy.rb,
lib/mustermann/visualizer/pattern_extension.rb,
lib/mustermann/visualizer/highlighter/ad_hoc.rb,
lib/mustermann/visualizer/highlighter/regular.rb,
lib/mustermann/visualizer/highlighter/composite.rb,
lib/mustermann/visualizer/renderer/hansi_template.rb
Overview
Namespace for Mustermann visualization logic.
Defined Under Namespace
Modules: PatternExtension Classes: Highlight, Tree
Instance Method Summary collapse
-
#highlight(pattern, **options) ⇒ Mustermann::Visualizer::Highlight
Highlight object for given pattern.
-
#tree(pattern, **options) ⇒ Mustermann::Visualizer::Tree
Tree object for given pattern.
Instance Method Details
#highlight(pattern, **options) ⇒ Mustermann::Visualizer::Highlight
Returns highlight object for given pattern.
21 22 23 |
# File 'lib/mustermann/visualizer.rb', line 21 def highlight(pattern, **) Highlight.new(pattern, **) end |
#tree(pattern, **options) ⇒ Mustermann::Visualizer::Tree
Returns tree object for given pattern.
34 35 36 |
# File 'lib/mustermann/visualizer.rb', line 34 def tree(pattern, **) TreeRenderer.render(pattern, **) end |