Class: RundocCommand

Inherits:
Rundoc::CodeCommand show all
Defined in:
lib/rundoc/code_command/rundoc_command.rb

Instance Attribute Summary

Attributes inherited from Rundoc::CodeCommand

#command, #contents, #keyword, #original_args, #render_command, #render_result

Instance Method Summary collapse

Methods inherited from Rundoc::CodeCommand

#hidden?, #not_hidden?, #push

Constructor Details

#initialize(contents = "") ⇒ RundocCommand



5
6
7
# File 'lib/rundoc/code_command/rundoc_command.rb', line 5

def initialize(contents = "")
  @contents = contents
end

Instance Method Details

#call(env = {}) ⇒ Object



13
14
15
16
17
# File 'lib/rundoc/code_command/rundoc_command.rb', line 13

def call(env = {})
  puts "Running: #{contents}"
  eval(contents)
  ""
end

#to_md(env = {}) ⇒ Object



9
10
11
# File 'lib/rundoc/code_command/rundoc_command.rb', line 9

def to_md(env = {})
  ""
end