Method: Rundoc::CodeCommand::FileCommand::Append#to_md
- Defined in:
- lib/rundoc/code_command/file_command/append.rb
#to_md(env) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rundoc/code_command/file_command/append.rb', line 12 def to_md(env) return unless render_command? raise "must call write in its own code section" unless env[:commands].empty? env[:before] << if @line_number "In file `#{filename}`, on line #{@line_number} add:" else "At the end of `#{filename}` add:" end env[:before] << NEWLINE nil end |