Method: Rundoc::CodeCommand::Write#to_md

Defined in:
lib/rundoc/code_command/write.rb

#to_md(env) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/rundoc/code_command/write.rb', line 25

def to_md(env)
  if render_command?
    raise "must call write in its own code section" unless env[:commands].empty?
    env[:before] << "In file `#{filename}` write:"
    env[:before] << NEWLINE
  end
  nil
end