class Rundoc::CodeCommand::PrintText
Public Class Methods
Source
# File lib/rundoc/code_command/print/text.rb, line 3 def initialize(line) @line = line end
Public Instance Methods
Source
# File lib/rundoc/code_command/print/text.rb, line 19 def call(env = {}) if render_before? "" else [@line, contents].compact.join("\n") end end
Source
# File lib/rundoc/code_command/print/text.rb, line 27 def render_before? !render_command? && render_result? end
Source
# File lib/rundoc/code_command/print/text.rb, line 7 def to_md(env) if render_before? env[:before] << [@line, contents].compact.join("\n") end "" end