Class: RundocCommand
Constant Summary
Rundoc::CodeCommand::NEWLINE
Instance Attribute Summary
#command, #contents, #keyword, #original_args, #render_command, #render_result
Instance Method Summary
collapse
#hidden?, #not_hidden?, #push
Constructor Details
#initialize(contents = "") ⇒ RundocCommand
4
5
6
|
# File 'lib/rundoc/code_command/rundoc_command.rb', line 4
def initialize(contents = "")
@contents = contents
end
|
Instance Method Details
#call(env = {}) ⇒ Object
12
13
14
15
16
|
# File 'lib/rundoc/code_command/rundoc_command.rb', line 12
def call(env = {})
puts "Running: #{contents}"
eval(contents)
""
end
|
#to_md(env = {}) ⇒ Object
8
9
10
|
# File 'lib/rundoc/code_command/rundoc_command.rb', line 8
def to_md(env = {})
""
end
|