class Rundoc::CodeCommand
Generic CodeCommand
class to be inherited
Constants
- NEWLINE
-
Newlines are stripped and re-added, this tells the project that we’re intentionally wanting an extra newline
- RUNDOC_DEFAULT_ERB_BINDING
- RUNDOC_ERB_BINDINGS
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/rundoc/code_command.rb, line 42 def call(env = {}) raise "not implemented on #{inspect}" end
Executes command to build project Is expected to return the result of the command
Source
# File lib/rundoc/code_command.rb, line 34 def push(contents) @contents ||= "" @contents << contents end
Also aliased as: <<
Source
# File lib/rundoc/code_command.rb, line 47 def to_md(env = {}) raise "not implemented on #{inspect}" end
the output of the command, i.e. ‘$ cat foo.txt`