Class: NanDoc::SpecDoc::Playback::Method
- Inherits:
-
Object
- Object
- NanDoc::SpecDoc::Playback::Method
- Includes:
- PlaybackMethods
- Defined in:
- lib/nandoc/spec-doc/playback/players/method.rb
Class Attribute Summary collapse
-
.handlers ⇒ Object
readonly
Returns the value of attribute handlers.
Instance Method Summary collapse
Methods included from PlaybackMethods
#get_tag_filter, #run_sexp_with_handlers
Class Attribute Details
.handlers ⇒ Object (readonly)
Returns the value of attribute handlers.
18 19 20 |
# File 'lib/nandoc/spec-doc/playback/players/method.rb', line 18 def handlers @handlers end |
Instance Method Details
#make_html(doc) ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/nandoc/spec-doc/playback/players/method.rb', line 32 def make_html doc fail("need one or two things") unless (1..2).include?(@things.size) fail("can't run method tag filter without at @test_file_path") unless @test_file_path proj = NanDoc::Project.instance proxy = proj.test_framework_proxy_for_file(@test_file_path) sexp = proxy.sexp_get @test_file_path, @things.first run_sexp(doc, sexp, *@things[1..-1]) nil end |
#run_note(out, scn) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/nandoc/spec-doc/playback/players/method.rb', line 42 def run_note out, scn node = scn.scan_assert(:note) note_content = node[1].call out.push_raw note_content nil end |